24 game/Solve

解24点。computes an expression to solve the 24 game if possible.

Using

gem install 24games

24games 5959 #or 5 9 5 9

you get it:

5 * 5 - 9 / 9

Authors