MAINT: Apply pre-commit

Remove byte-order-marker pre-commit check as there would be
many adjustments necessary
This commit is contained in:
Martin Thoma
2022-03-05 09:29:23 +01:00
parent f5e33ae38f
commit e64fb6795c
536 changed files with 6267 additions and 5556 deletions

View File

@@ -47,7 +47,7 @@ namespace Number
{
Random rand = new Random();
// Get a unique set of random numbers between 1 and 5
// Get a unique set of random numbers between 1 and 5
// I assume this is what the original BASIC FNR(X)=INT(5*RND(1)+1) is doing
Random1 = (int)(5 * rand.NextDouble() + 1);
do
@@ -77,10 +77,10 @@ namespace Number
int Guess = 0;
GetRandomNumbers(out Random1, out Random2, out Random3, out Random4, out Random5);
while (!Win)
{
Guess = PromptForGuess();
if (Guess == Random1)
@@ -96,7 +96,7 @@ namespace Number
Points += 1;
else if (Guess == Random5)
Points -= (int)(Points * 0.5);
if (Points > 500)
{
Console.WriteLine("!!!!You Win!!!! with {0} points.", Points);
@@ -123,4 +123,4 @@ namespace Number
}
}
}
}