Skip to content

Latest commit

 

History

History
6 lines (4 loc) · 677 Bytes

README.md

File metadata and controls

6 lines (4 loc) · 677 Bytes

24 Solver

The 24 Game is a game where a player must use the four given integers construct the number 24. The player can only use multiplication, division, addition, and subtraction. Each number must be used once, but you can use operations more than once. For example, given the integers, 3, 3, 8, and 8, one could construct the equation 8 / (3 - 8/3) = 24.

This solver solves the game for any goal number (not just 24), any number of initial integers, and any operations. It is written in Rust, and the algorithm and source are completely documented if would like to understand how it works.