30 lines
720 B
C++
30 lines
720 B
C++
#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
|