Skip to content

Commit

Permalink
fix: consist language
Browse files Browse the repository at this point in the history
  • Loading branch information
BamblooV committed Oct 24, 2024
1 parent 2b022ca commit 14e4f94
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
5 changes: 2 additions & 3 deletions model/DictionaryService.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.IO;
using System.Reflection;
using System.Reflection;
using System.Text;

namespace Hangman.model
Expand Down Expand Up @@ -54,7 +53,7 @@ public void LoadWords()
}
catch
{
Console.WriteLine("Failed to load resources");
Console.WriteLine("Ее удалось загрузить словарик из ресурсов.");
}
}

Expand Down
12 changes: 6 additions & 6 deletions model/Game.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ private char ReadLetter()
{
if (!isLetter)
{
Console.WriteLine($"\n{pressedKey} is not character.");
Console.WriteLine($"\n{pressedKey} не буква.");
}

if (isAlreadyUsed)
{
Console.WriteLine($"\n{pressedKey} was already used. Try another one.");
Console.WriteLine($"\n{pressedKey} уже была использована. Попробуй другую.");
}

view.PrintPrompt();
Expand Down Expand Up @@ -80,16 +80,16 @@ public void StartGame()

if (lives == 0)
{
Console.WriteLine("Game over");
Console.WriteLine($"Correct word is {word}");
Console.WriteLine("Вы проиграли");
Console.WriteLine($"Загаданное слово это {word}");
}

if (rightLettersCounter == lettersToGuessCount)
{
Console.WriteLine("You win");
Console.WriteLine("Вы победили");
}

Console.WriteLine("\nEnter any key to back to menu");
Console.WriteLine("\nНажмите людую кнопку, чтобы вернуться в меню.");
Console.ReadKey();
}
}
Expand Down
4 changes: 2 additions & 2 deletions view/ConsoleRenderer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ private void PrintHangman(int frame)

private void DrawGuessedLetters(List<char> guessedLetters)
{
Console.Write("Guessed letters: ");
Console.Write("Предположенные буквы: ");
foreach (var letter in guessedLetters)
{
Console.Write($"{letter} ");
Expand Down Expand Up @@ -106,7 +106,7 @@ public void PrintFrame(int frameNumber, string word, List<char> guessedLetters)

public void PrintPrompt()
{
Console.Write("\nGuess a letter: ");
Console.Write("\nВведи букву: ");
}
}
}

0 comments on commit 14e4f94

Please sign in to comment.