Math 24 game and solver
This repository holds the source code for the math24 ruby gem.
math24 includes classes for both generating 24 Game problems as well as checking solutions. It also installs an executable, math24, that will allow the user to play a command line version of the 24 Game.
Installing the math24 gem should include all required dependencies.
For more information see: math24 at rubygems.org
To run the command line game, first install the gem:
> gem install math24
Successfully installed math24-1.0.1
1 gem installed
Then, to start the game, type
> math24
To quit, just type
exit
To install ruby 3.1.0, run the following command:
rvm install 3.1.0 --with-openssl-dir=/usr/local/opt/openssl@3
To launch the Web App locally, run:
web: bundle exec thin -R config.ru start
This should start the webserver at http://localhost:3000
The math 24 Sinatra web application is hosted on Heroku. Pushes to the master
branch will automatically deploy via Codeship CI.
You can also force a deploy by running git push heroku master
.
The web app is accessible at http://www.getto24.com.
The gem is available as open source under the terms of the MIT License.