Skip to content

Commit

Permalink
add introductory prompt when game launches
Browse files Browse the repository at this point in the history
  • Loading branch information
ZacharyPatten committed Apr 13, 2022
1 parent f1ada2d commit f3b01e8
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Projects/Dice Game/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,17 @@

Random random = new Random();

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

0 comments on commit f3b01e8

Please sign in to comment.