Skip to content

Commit

Permalink
hide user input from view
Browse files Browse the repository at this point in the history
  • Loading branch information
ZacharyPatten committed Apr 13, 2022
1 parent cd9290b commit f1ada2d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Projects/Dice Game/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{
Console.WriteLine("Press any key to roll the dice:");

Console.ReadKey();
Console.ReadKey(true);

int playerRandomNum = random.Next(1, 7);
Console.WriteLine("You rolled a " + playerRandomNum);
Expand Down Expand Up @@ -52,4 +52,4 @@
Console.WriteLine("This game is a draw.");
}

Console.ReadKey();
Console.ReadKey(true);

0 comments on commit f1ada2d

Please sign in to comment.