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

@@ -44,7 +44,7 @@ namespace Hangman
words.Remove(word);
GameLoop(word);
// Game finished. Ask if player wants another one.
Console.WriteLine("WANT ANOTHER WORD? ");
var response = Console.ReadLine();
@@ -106,7 +106,7 @@ namespace Hangman
if (displayedWord.Contains('-'))
{
Console.WriteLine(displayedWord);
// Give the player a chance to guess the whole word.
var wordGuess = GetWordFromPlayer();
if (word == wordGuess)
@@ -161,7 +161,7 @@ namespace Hangman
Console.WriteLine("WHAT IS YOUR GUESS?");
var guess = char.ToUpper(Console.ReadKey().KeyChar);
Console.WriteLine();
if (usedLetters.Contains(guess))
{
// After this the loop will continue.
@@ -244,7 +244,7 @@ namespace Hangman
}
graphic.Print();
}
/// <summary>
/// Get a list of words to use in the game.
/// </summary>
@@ -310,4 +310,4 @@ namespace Hangman
/// <returns>The result string.</returns>
private static string Tab(int length) => new string(' ', length);
}
}
}