Skip to content

dawndarkness/brain-train

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Brain-Train

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.

About Brain-Train

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.

Prerequisites

  • Ruby
  • Ruby2d

Setup

  1. Install Ruby.

    Please see ruby documentation for details on how to do this.

  2. 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.

  3. To run the game, execute this line of code in the command line;

    ruby game.rb
    

Contributors

Feedback

If you have feedback or questions, please find me on twitter codingdawn

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages