/make-24

A terminal version of the card game 24: compute 24 with unlimited parentheses and the four functions (+, −, ×, ÷)

Primary LanguageC++MIT LicenseMIT

Make 24!

drawing

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

  1. Open your terminal and type git clone https://github.com/KevinyWu/make_24.git or download from "Code -> Download ZIP"
  2. Navigate inside the directory make_24 in your terminal by typing cd make_24
  3. Compile the code by typing make play
  4. Run the game by typing .\play
  5. If you would like to remove the play file when you are done, type rm play; otherwise, it can be reused next time you play