Skip to content
Open

1 #2

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Game/Board.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#endif

using namespace std;

// Класс Board управляет состоянием игрового поля
class Board
{
public:
Expand Down
5 changes: 3 additions & 2 deletions Game/Config.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@ using json = nlohmann::json;
class Config
{
public:
Config()
Config() // Оператор () позволяет создать объект без явного вызова конструктора.
{
reload();
}

// Функция reload() перезагружает настройки из конфигурационного файла
void reload()
// Загрузка данных
{
std::ifstream fin(project_path + "settings.json");
fin >> config;
Expand Down
6 changes: 3 additions & 3 deletions Game/Game.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class Game
fout.close();
}

// to start checkers
// Функция play() управляет игровым процессом, включая ходы игрока и бота
int play()
{
auto start = chrono::steady_clock::now();
Expand Down Expand Up @@ -104,7 +104,7 @@ class Game
}

private:
void bot_turn(const bool color)
void bot_turn(const bool color) // Ôóíêöèÿ bot_turn() óïðàâëÿåò õîäîì êîìïüþòåðà
{
auto start = chrono::steady_clock::now();

Expand Down Expand Up @@ -132,7 +132,7 @@ class Game
fout.close();
}

Response player_turn(const bool color)
Response player_turn(const bool color) // Функция player_turn() отвечает за выполнение хода игроком
{
// return 1 if quit
vector<pair<POS_T, POS_T>> cells;
Expand Down
2 changes: 1 addition & 1 deletion Game/Hand.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include "../Models/Response.h"
#include "Board.h"

// methods for hands
// Класс Hand управляет картами игрока
class Hand
{
public:
Expand Down
Loading