Окончательная неокончательная версия. Мэйн расшит на отдельные файлы для классов. Дальше расшивать лень.
This commit is contained in:
29
TurnClass/Turn.h
Normal file
29
TurnClass/Turn.h
Normal 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
|
||||
Reference in New Issue
Block a user