Skip to content

2-Player math game where players take turns to answer simple math addition problems.

Notifications You must be signed in to change notification settings

glowiep/ruby-math-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Two-player Math Game

This is a 2-Player math game where players take turns to answer simple math addition problems. This game is created in Ruby.

Game Rules 🏆

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

Getting Started ✨

  1. Clone this directory.

  2. Run ruby bin/main.rb in the command line interface from the project root directory.

  3. Type your answer when prompted, and hit enter to submit.

Have Fun!

Example game

Project Structure

Project Structure

About

2-Player math game where players take turns to answer simple math addition problems.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages