This is a 2-Player math game where players take turns to answer simple math addition problems. This game is created in Ruby.
- Both players start with 3 lives.
- A new math question is generated for each turn by picking two numbers between 1 and 20.
- The players take turns answering questions, losing 'lives' for incorrect answers.
- The game continues until one player runs out of lives.
- When the game is over, the winner's score will be announced.
-
Clone this directory.
-
Run
ruby bin/main.rb
in the command line interface from the project root directory. -
Type your answer when prompted, and hit enter to submit.
Have Fun!