mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2026-01-16 23:12:08 -08:00
MAINT: Apply pre-commit
Remove byte-order-marker pre-commit check as there would be many adjustments necessary
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user