Linux cli clone of Moj Broj from Slagalica
Demonstration
- Press any key 3 times to get the 3 digit number you'll be looking for
- Press any key 4 times to get the 4 available single digit ( != 0 ) numbers
- Press any key once to get the available number ∈ {10, 15, 20}
- Press any key once to ge the available number ∈ {25, 50, 75, 100}
- After this, 90 seconds start ticking
- Try to write a mathematical expression using the available numbers which equals to the number you're searching for
- Expressions can only contain +, -, *, /, and ()
- In case of division, numbers must be divisible
- Points
- Correct: 10
- +- 5: 5
- +- 10: 2
Requirements:
Steps:
- Clone the repository
git clone github.com/MihajloVelickovic/MojBroj.git
cd MojBroj
- Generate buildfiles
cmake . -B ./build [-DCMAKE_BUILD_TYPE=Release]
- Build
cmake --build build
- Run
cd build
./mojbroj