internal static void PrintRoundDescription(IHangMan hangman, int gameCounter)
 {
     Console.WriteLine();
     Console.WriteLine($"----------Round {gameCounter}----------");
     Console.WriteLine($"WORD: {hangman.GetGuessedWord()}");
     Console.WriteLine($"PAST GUESSES: {string.Join(",", hangman.GetUsedLetters())}");
     Console.WriteLine("Your next guess: ");
 }
 internal static void PrintResult(IHangMan hangman)
 {
     Console.WriteLine(hangman.GetErrorCount() < hangman.GetMaxErrors()
         ? "Congratzzzz, you won"
         : $"Tough luck, you lost. The word was {hangman.GetFullWord()}");
 }
示例#3
0
 internal Game(IHangMan hangman)
 {
     _hangman     = hangman;
     _gameCounter = 0;
 }