Skip to content

Commit f1ada2d

Browse files
committed
hide user input from view
1 parent cd9290b commit f1ada2d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Projects/Dice Game/Program.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
{
1010
Console.WriteLine("Press any key to roll the dice:");
1111

12-
Console.ReadKey();
12+
Console.ReadKey(true);
1313

1414
int playerRandomNum = random.Next(1, 7);
1515
Console.WriteLine("You rolled a " + playerRandomNum);
@@ -52,4 +52,4 @@
5252
Console.WriteLine("This game is a draw.");
5353
}
5454

55-
Console.ReadKey();
55+
Console.ReadKey(true);

0 commit comments

Comments
 (0)