From a59521470d297d976b3a9caa95fab0c98764b389 Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 15 Oct 2024 13:53:20 +0200 Subject: [PATCH] introduce new bugs --- Program.cs | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/Program.cs b/Program.cs index 5c7bbd6..2448599 100644 --- a/Program.cs +++ b/Program.cs @@ -1,8 +1,8 @@ -using Lab1; -using System.Text.Json; +using System.Text.Json; +using Lab1; var rand = new Random(); -var value = rand.Next(1, 101); +var value = rand.Next(1, 100); int guess; int trials = 0; @@ -17,8 +17,7 @@ do Console.WriteLine("Za mało!"); trials++; -} -while (guess != value); +} while (guess != value); Console.WriteLine($"Wygrana w {trials} próbie!"); Console.Write("Podaj swoje imię: "); @@ -40,4 +39,4 @@ File.WriteAllText(FileName, JsonSerializer.Serialize(highScores)); foreach (var item in highScores.OrderBy(x => x.Trials)) { Console.WriteLine($"{item.Name} -- {item.Trials} prób"); -} \ No newline at end of file +}