A console version of the card game 24, including a solving algorithm. It allows the four functions (+, −, ×, ÷) and unlimited parentheses. The four cards will always have a valid solution, as invalid combinations are filtered out.
To install the game, follow these steps
- Open your terminal and type
git clone https://github.com/KevinyWu/make_24.git
or download from "Code -> Download ZIP" - Navigate inside the directory
make_24
in your terminal by typingcd make_24
- Compile the code by typing
make play
- Run the game by typing
.\play
- If you would like to remove the
play
file when you are done, typerm play
; otherwise, it can be reused next time you play