From f1ada2daeb79fa6b4e4035eb33aa3c7d62e0d7d4 Mon Sep 17 00:00:00 2001 From: Zachary Patten Date: Tue, 12 Apr 2022 20:00:22 -0400 Subject: [PATCH] hide user input from view --- Projects/Dice Game/Program.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Projects/Dice Game/Program.cs b/Projects/Dice Game/Program.cs index 72c5b13f..3c61b6c9 100644 --- a/Projects/Dice Game/Program.cs +++ b/Projects/Dice Game/Program.cs @@ -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); @@ -52,4 +52,4 @@ Console.WriteLine("This game is a draw."); } -Console.ReadKey(); +Console.ReadKey(true);