License & Readme

This commit is contained in:
Aelita4 2021-01-19 22:06:13 +01:00
parent a2ffa8881a
commit 82c4c7d2b6
2 changed files with 55 additions and 0 deletions

21
LICENSE.md Normal file
View File

@ -0,0 +1,21 @@
MIT License
Copyright (c) 2021 Aelita4
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

34
README.md Normal file
View File

@ -0,0 +1,34 @@
# ONP
Simple implementation of ONP algorithm in C++ (only works on Windows platform)
## Installation
Use g++ compiler from [GNU Compiler Collection](https://gcc.gnu.org/) package like this:
```bash
g++ main.cpp -o onp.exe
```
## Usage
You can provide additional arguments, like equation and speed of calculation
If not providen any, program will ask for equation and set all speeds to default (100 ms)
```bash
onp.exe "2+2=" 100 100 100
```
### Notes:
- Equation must be put in colons and end with equation mark (`=`)
- Next three numbers represents wait times inside program (all in miliseconds), use larger number to slow down calculations and analyze how algorithm works
- first number is responsible for "checking" part of program
- second for converting equation to ONP format
- third for actual calculating
## Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
## License
[MIT](https://choosealicense.com/licenses/mit/)