From 1478bd49ee2f59aedbcca6f8a28d0193865f5b22 Mon Sep 17 00:00:00 2001 From: LabUser Date: Tue, 1 Aug 2017 21:17:23 -0400 Subject: [PATCH 1/2] small change --- NumberGuessGame/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NumberGuessGame/Program.cs b/NumberGuessGame/Program.cs index 6e911fb..d270108 100644 --- a/NumberGuessGame/Program.cs +++ b/NumberGuessGame/Program.cs @@ -8,7 +8,7 @@ public static void Main(string[] args) { //I want to remember the username, so we create a var to hold it String player_name; - Console.WriteLine("Welcome to the World Famous Number Guess Game!"); + Console.WriteLine("Welcome to the World Famous Guessing Game!"); Console.WriteLine("What is your name contestent?"); player_name = Console.ReadLine(); Console.WriteLine("Lets roll the dice behind the screen, and see what number we get!"); From 9049728b611e95e47e309f76a66cdb944955990a Mon Sep 17 00:00:00 2001 From: LabUser Date: Thu, 3 Aug 2017 19:40:17 -0400 Subject: [PATCH 2/2] fixed something --- NumberGuessGame/Program.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/NumberGuessGame/Program.cs b/NumberGuessGame/Program.cs index 4de946d..801e3f8 100644 --- a/NumberGuessGame/Program.cs +++ b/NumberGuessGame/Program.cs @@ -52,7 +52,7 @@ public static void Main(string[] args) } System.Threading.Thread.Sleep(2000); - int secret = (int)(r.NextDouble() * 100.0); + int secret = (int)(r.NextDouble() * 90.0); Console.WriteLine("Great! We have our number! Now guess out of 100!"); @@ -70,7 +70,7 @@ public static void Main(string[] args) } //Okay, we have a valid int, but we need to make sure it's in range - if (iGuess >= 100 || iGuess < 0){ + if (iGuess >= 90 || iGuess < 0){ Console.WriteLine("That's not how this works! That's not how any of this works! Guess again!"); continue; }