/// <summary> /// Prints the word to be guessed on the console. /// </summary> /// <param name="word">IRenderable word to be guessed.</param> public void PrintWord(IRenderable word) { Console.ForegroundColor = FontColor; string secretWord = word.GetBody().ToUpper(); wordsFont.Print(secretWord, CenterWidth - (secretWord.Length * 5 / 2), CenterHeight - 10); ClearCommand(); }
/// <summary> /// Prints the word to be guessed on the console. /// </summary> /// <param name="word">IRenderable word to be guessed.</param> public void PrintWord(IRenderable word) { Console.WriteLine(); Console.Write("The secret word is: "); Console.WriteLine(word.GetBody()); Console.WriteLine(); }