Compare commits

...

3 Commits

Author SHA1 Message Date
Marcin Badurowicz
fe779369f4 start translating 2024-10-11 10:52:50 +02:00
Marcin Badurowicz
b5f79b1c29 remove default name 2024-10-11 10:52:50 +02:00
Marcin Badurowicz
a244324776 fix null warning 2024-10-11 10:52:40 +02:00

View File

@ -8,20 +8,20 @@ int guess;
int trials = 0;
do
{
Console.Write("Wprowadź wartość: ");
Console.Write("Enter value: ");
guess = Convert.ToInt32(Console.ReadLine());
if (guess > value)
Console.WriteLine("Za dużo!");
Console.WriteLine("Za big!");
else if (guess < value)
Console.WriteLine("Za mało!");
Console.WriteLine("Za small!");
trials++;
} while (guess != value);
Console.WriteLine($"Wygrana w {trials} próbie!");
Console.Write("Podaj swoje imię: ");
var name = Console.ReadLine();
var name = Console.ReadLine()!;
var hs = new HighScore { Name = name, Trials = trials };