From 82b183ff897b1bb67a7018c910091809d9315178 Mon Sep 17 00:00:00 2001 From: HouSheng Chiang Date: Thu, 3 Aug 2017 19:21:01 -0400 Subject: [PATCH 1/3] game too hard, made it easy. --- NumberGuessGame/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NumberGuessGame/Program.cs b/NumberGuessGame/Program.cs index 7117ef7..2ebeddd 100644 --- a/NumberGuessGame/Program.cs +++ b/NumberGuessGame/Program.cs @@ -67,7 +67,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 >= 10 || iGuess < 0){ Console.WriteLine("That's not how this works! That's not how any of this works! Guess again!"); continue; } From b5a60f8b653f57afdc6664bae41451e43f1f94c7 Mon Sep 17 00:00:00 2001 From: HouSheng Chiang Date: Thu, 3 Aug 2017 19:37:52 -0400 Subject: [PATCH 2/3] game too hard, made it easyver.2 --- NumberGuessGame/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NumberGuessGame/Program.cs b/NumberGuessGame/Program.cs index 2ebeddd..d4c366a 100644 --- a/NumberGuessGame/Program.cs +++ b/NumberGuessGame/Program.cs @@ -49,7 +49,7 @@ public static void Main(string[] args) } System.Threading.Thread.Sleep(2000); - int secret = (int)(r.NextDouble() * 100.0); + int secret = (int)(r.NextDouble() * 10.0); Console.WriteLine("Great! We have our number! Now guess out of 100!"); From eaf31ee14cd2418e9cb3ce35f7adc413317d03b7 Mon Sep 17 00:00:00 2001 From: HouSheng Chiang Date: Thu, 3 Aug 2017 19:41:31 -0400 Subject: [PATCH 3/3] game too hard, made it 0-10 --- NumberGuessGame/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NumberGuessGame/Program.cs b/NumberGuessGame/Program.cs index d4c366a..28a8267 100644 --- a/NumberGuessGame/Program.cs +++ b/NumberGuessGame/Program.cs @@ -51,7 +51,7 @@ public static void Main(string[] args) System.Threading.Thread.Sleep(2000); int secret = (int)(r.NextDouble() * 10.0); - Console.WriteLine("Great! We have our number! Now guess out of 100!"); + Console.WriteLine("Great! We have our number! Now guess out of 10!"); while (true){ //our main game loop