Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions NumberGuessGame/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ 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!");
Console.WriteLine("Great! We have our number! Now guess out of 10!");

while (true){
//our main game loop
Expand All @@ -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;
}
Expand Down