Skip to content

Commit

Permalink
Guess demo fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
jp2masa committed May 23, 2018
1 parent 7411694 commit b81d51b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Demos/Guess/Kernel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ protected override void Run()
Console.WriteLine("You guessed it!");
Console.WriteLine("Press s to stop or any other key to play again. Thanks for playing!");

if (Console.ReadKey().Key == ConsoleKey.S)
if (Console.ReadKey(true).Key == ConsoleKey.S)
{
Stop();
}
Expand Down

0 comments on commit b81d51b

Please sign in to comment.