https://github.com/glowiep/ruby-math-game
2-Player math game where players take turns to answer simple math addition problems.
https://github.com/glowiep/ruby-math-game
Last synced: about 1 month ago
JSON representation
2-Player math game where players take turns to answer simple math addition problems.
- Host: GitHub
- URL: https://github.com/glowiep/ruby-math-game
- Owner: glowiep
- Created: 2024-03-04T00:29:11.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-05T00:39:32.000Z (about 1 year ago)
- Last Synced: 2025-02-11T12:30:29.133Z (3 months ago)
- Language: Ruby
- Size: 67.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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!

## Project Structure
