Version 0.4

This commit is contained in:
2023-08-04 14:19:23 +03:00
parent 8197a64803
commit 5a4fa61ed2
9 changed files with 16 additions and 11 deletions

View File

@@ -1,4 +1,5 @@
// CGame.cpp
// Bulls and Cows the game
// CGame.cpp
//
#include "CGame.h"
@@ -108,8 +109,8 @@ void CGame::ShowGuessedNumber(bool show)
void CGame::PrintGameHeader()
{
std::system("cls");
std::wcout << strGAMENAME << ' ' << strGAMEVERSION << ' ' << VERSION << std::endl;
std::wcout << strGAMECOPYRIGHT << "\n\n\n" << std::endl;
std::wcout << L"Быки и Коровы." << ' ' << L"Версия" << ' ' << VERSION << std::endl;
std::wcout << L"Copyright (c) 2023 by W0LF aka 'dreamforce'" << "\n\n" << std::endl;
}
void CGame::PrintGameFooter()
@@ -142,13 +143,13 @@ CGame::CGame()
do
{
PrintGameHeader();
std::wcout << L"Введите количество цифр в числе (от 3 до 7).\n";
std::wcout << L"Чем больше цифр - тем сложнее. Обычно 4.\n";
std::wcout << L"Введите количество цифр в числе (от 3 до 5).\n";
std::wcout << L"Чем больше цифр - тем сложнее. Обычно 4.\n\n";
std::wcout << L"=> ";
if (userInput.Get())
{
if ((userInput.m_vUserInput.at(0) >= 3) && (userInput.m_vUserInput.at(0) <= 7))
if ((userInput.m_vUserInput.at(0) >= 3) && (userInput.m_vUserInput.at(0) <= 5))
{
m_ucDigits = userInput.m_vUserInput.at(0);
ok = true;

View File

@@ -1,3 +1,4 @@
// Bulls and Cows the game
// CGame.h
//
#pragma once

View File

@@ -1,3 +1,4 @@
// Bulls and Cows the game
// CStep.cpp
//
#include "CStep.h"

View File

@@ -1,3 +1,4 @@
// Bulls and Cows the game
// CStep.h
//
#pragma once

View File

@@ -1,3 +1,4 @@
// Bulls and Cows the game
// CUserInput.cpp
//
#include "CUserInput.h"

View File

@@ -1,3 +1,4 @@
// Bulls and Cows the game
// CUserInput.h
//
#pragma once

View File

@@ -1,3 +1,4 @@
// Bulls and Cows the game
// bulls-and-cows.cpp
//
#include "headers.h"

View File

@@ -1,11 +1,8 @@
// Bulls and Cows the game
// defines.h
//
#pragma once
#define VERSION 0.3
#define strGAMENAME L"Áûêè è Êîðîâû."
#define strGAMEVERSION L"Âåðñèÿ"
#define strGAMECOPYRIGHT L"Copyright (c) 2023 by W0LF aka 'dreamforce'"
#define VERSION 0.4
#ifdef _DEBUG
#define IS_SHOW true

View File

@@ -1,3 +1,4 @@
// Bulls and Cows the game
// headers.h
//
#pragma once