| Crates.io | basic_math_problem_generator |
| lib.rs | basic_math_problem_generator |
| version | 0.1.3 |
| created_at | 2023-01-11 01:10:11.360706+00 |
| updated_at | 2023-01-18 16:26:08.228479+00 |
| description | Simple CLI math test with varying difficulty. Geared towards small children for practicing. |
| homepage | |
| repository | https://github.com/CCecilia/Basic-Math-Test-Generator |
| max_upload_size | |
| id | 755961 |
| size | 41,187 |
Generates a basic math test in your terminal or generated into a text file with a answer key if you want a paper version. This is mainly geared towards children to help them practice. The numbers used in each problem are generated at random. The difficulty can be adjusted using the --difficulty flag. The types of operations used in the generated problem can also be adjusted using the flags.
I'm a father and engineer. I'm currently learning Rust and my children love solving math problems. So it only makes sense.
cargo install basic_math_problem_generator
math-test
Default number of problems is 10. This can be adjusted using the --problems flag.
math-test --problems 20
Default diffulty is level 1. The diffulty of the test can be adjusted using the --difficulty flag.
math-test --difficulty 2
Default is only addition problems.
--no-addition flag has to be used in conjunction with one of the flags below. Removes addition problems.--subtraction flag adds subtraction problems.--multiplication flag adds multiplication problems.For Multiplication only.
math-test --no-addition --multiplication
For a mixed of all operations.
math-test --subtraction --multiplication
To create a paper test version with a answer key use the following command below. This will create directory name Math-Test in whatever directory you call the command from and will contain two files questions.txt and answers.txt. The problems will be numbered to easily correlate the answers to the questions.
math-test --paper-test