Окончательная неокончательная версия. Мэйн расшит на отдельные файлы для классов. Дальше расшивать лень.

This commit is contained in:
2024-11-07 11:43:09 +05:00
parent ae50933cbb
commit e282072e93
7 changed files with 254 additions and 148 deletions

29
TurnClass/Turn.h Normal file
View File

@ -0,0 +1,29 @@
#pragma once
#ifndef TICTACTOE_TURN_H
#define TICTACTOE_TURN_H
#include <iostream>
#include <string>
#include "../BoardClass/Board.h"
#include <ctime>
#include <chrono>
#include <thread>
#include <random>
//Ходы игрока и бота
class Turn {
public:
//Сюда кладутся координаты, которые скармливаются игровому полю.
unint turnLINEint, turnCOLint;
//Строковые для ввода человека и перевода этого ввода в числа
string Humancount;
string turnline, turncol;
bool firstnumber, defenceturn;
Board BoardObj;
void HumanTurn();
void BotTurn();
};
#endif //TICTACTOE_TURN_H