Skip to content

Commit f3b01e8

Browse files
committed
add introductory prompt when game launches
1 parent f1ada2d commit f3b01e8

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Projects/Dice Game/Program.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,17 @@
55

66
Random random = new Random();
77

8+
Console.WriteLine("Dice Game");
9+
Console.WriteLine();
10+
Console.WriteLine("In this game you and a computer Rival will play 10 rounds");
11+
Console.WriteLine("where you will each roll a 6-sided dice, and the player");
12+
Console.WriteLine("with the highest dice value will win the round. The player");
13+
Console.WriteLine("who wins the most rounds wins the game. Good luck!");
14+
Console.WriteLine();
15+
Console.Write("Press any key to start...");
16+
Console.ReadKey(true);
17+
Console.WriteLine();
18+
Console.WriteLine();
819
for (int i = 0; i < 10; i++)
920
{
1021
Console.WriteLine("Press any key to roll the dice:");

0 commit comments

Comments
 (0)