Here are the steps to implement an Odds and Evens Game:
Weโll use these steps as a roadmap, guiding us through the game implementation.
You can write them in the program using comments.
๐ Learn
โ What to Do
โ๏ธ Program.cs - Changes
GamePrint.Box("Welcome to the Odds and Evens Game!");
++
++ // Player chooses to play with odds or evens.
++ // Player enters a number between 1 and 2.
++ // Computer randomly generates a number between 1 and 2.
++ // Add the two numbers.
++ // Check if the sum is odd or even.
++ // Decide the round winner.
++ // Repeat rounds until one of the players wins two times.
++ // Announce the game winner.
++ // Ask the player to play again or quit.๐๏ธ Program.cs - Final
GamePrint.Box("Welcome to the Odds and Evens Game!");
// Player chooses to play with odds or evens.
// Player enters a number between 1 and 2.
// Computer randomly generates a number between 1 and 2.
// Add the two numbers.
// Check if the sum is odd or even.
// Decide the round winner.
// Repeat rounds until one of the players wins two times.
// Announce the game winner.
// Ask the player to play again or quit.