Added the new PrintGameInitialQuery() method.

This commit is contained in:
2023-08-06 14:34:29 +03:00
parent 872e390ce9
commit 33d1f783ac
2 changed files with 10 additions and 4 deletions

View File

@@ -59,7 +59,7 @@ void CGame::Start()
bool CGame::GetNumber(CStep step)
{
std::wcout << L"\t\t\t\t\t" << m_sLastError << L"\r";
std::wcout << L"=>\t";
std::wcout << "=>\t";
CUserInput userInput(m_ucDigits);
@@ -119,6 +119,12 @@ void CGame::PrintGameFooter()
std::wcout << L"\tКоличество ходов: " << m_uStepCounter << L"\n\n" << std::endl;
}
void CGame::PrintGameInitialQuery()
{
std::wcout << L"Введите количество цифр в числе (от 3 до 5).\n";
std::wcout << L"Чем больше цифр - тем сложнее. Обычно 4.\n" << std::endl;
}
void CGame::PrintSteps()
{
if (m_Steps.size() < 1) return;
@@ -141,9 +147,8 @@ CGame::CGame()
do
{
PrintGameHeader();
std::wcout << L"Введите количество цифр в числе (от 3 до 5).\n";
std::wcout << L"Чем больше цифр - тем сложнее. Обычно 4.\n\n";
std::wcout << L"=> ";
PrintGameInitialQuery();
std::wcout << "=> ";
if (userInput.Get())
{

View File

@@ -22,6 +22,7 @@ private:
void ShowGuessedNumber(bool);
void PrintGameHeader();
void PrintGameFooter();
void PrintGameInitialQuery();
void PrintSteps();
template<typename T, typename N>