Skip to content

Create a 2-player guessing game where players take turns to answer simple addition problems. The math questions are automatically generated by the game. It should do this by picking two numbers between 1 and 20.

Notifications You must be signed in to change notification settings

gbrl/two_player_math_game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 

Repository files navigation

Two Player Math Game Create a 2-player guessing game where players take turns to answer simple addition problems. The math questions are automatically generated by the game. It should do this by picking two numbers between 1 and 20.

Example prompt: "Player 1: What does 5 plus 3 equal?"

Both players start with 3 lives. They lose a life if they mis-answer a question. If a player gets a question wrong, the game should output 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 should announce who won and what the other player’s score is.

As before, you can use gets.chomp to get input from users and puts for output.

Please read all of the tips prior to starting your game.

About

Create a 2-player guessing game where players take turns to answer simple addition problems. The math questions are automatically generated by the game. It should do this by picking two numbers between 1 and 20.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages