Skip to content

Devvaru/TwO-O-Player-Math-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TwO-O-Player-Math-Game

Description

A 2-Player CLI based math game written in Ruby, where players take turns to answer simple math addition problems. A new math question is generated for each turn by picking two numbers between 1 and 20. The player whose turn it is is prompted the question and must answer correctly or lose a life.

Details

Both players start with 3 lives. They lose a life if they mis-answer a question. At the end of every turn, the game outputs the new scores for both players, so players know where they stand.

The game doesn’t end until one of the players loses all their lives. At this point, the game announces who won and what the other player’s score is.

Requires

Ruby v3.1.1

About

LHL Ruby based math game

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages