Train your brain with simple mental maths. This game is still under development, and was developed during my time as a student at Code Chrysalis. It was made in one week with Ruby, a language I had never studied/used before.
Brain-Train aims to help young and old alike build their mental arithmetic skills. On game launch the player can select whether they want to practice addition, subtraction, multiplication or division by clicking the appropriate icon. The game then randomly generates different numbers/ equations for the player to solve.
It is important to note that whatever the player types will count as input into the game. After completing their answer, they can press submit and then next question to generate another question. Once they have finished with their training, they can select the quit button on the top right of the game screen.
- Ruby
- Ruby2d
-
Install Ruby.
Please see ruby documentation for details on how to do this.
-
Install Ruby2D
gem install ruby2d
Possible Apple M1 chip error
If you have an error like this:
You don't have write permissions for the /Library/Ruby/Gems/2.6.0 directory
Then run the following command before you run the
gem install ruby2d
command:export GEM_HOME="$HOME/.gem"
Please note that you may have to do this every time you want to open the file.
-
To run the game, execute this line of code in the command line;
ruby game.rb
- Dino artwork/Sprite credit to: Scissor Marks
If you have feedback or questions, please find me on twitter codingdawn