In the next step:
๐ป C#
// Player enters a number between 1 and 2.Like we did with the player choice, we need to ask the player to choose a number and store it in a variable.
Weโll use this value to calculate the total sum and determine the round winner.
โ What to Do
๐ฏ Expected Outcome
+--------------------------------+
+-- Welcome to Odds and Evens! --+
+--------------------------------+
--> Choose 1 for Odds or 2 for Evens:
1
# You chose Odds, Computer is Evens
--> Choose a number between 1 and 2:
1
โ๏ธ Program.cs - Changes
// Player enters a number between 1 and 2.
++ GamePrint.Input("Choose a number between 1 and 2");
++ int playerNumber = GameInput.Number(1, 2);๐๏ธ Program.cs - Final
(...)
// Player enters a number between 1 and 2.
GamePrint.Input("Choose a number between 1 and 2");
int playerNumber = GameInput.Number(1, 2);
(...)