forked from gomoku/Carbon-Gomoku
-
Notifications
You must be signed in to change notification settings - Fork 0
/
OXPlayer.h
38 lines (28 loc) · 797 Bytes
/
OXPlayer.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*
* AIPlayer.h
* 30.11.2001, Michal Czardybon
*
* Klasa abstrakcyjna dla algorytmu sztucznej inteligencji
*
*/
#ifndef _OXPlayer
#define _OXPlayer
class OXPlayer
{
public:
// nowa gra
virtual void start(int size) = 0;
// informuje AI o ruchu przeciwnika
virtual void move(int x, int y) = 0;
// polecenie wybrania ruchu przez AI
virtual void yourTurn(int &x, int &y, int depth = 0, int time = 0) = 0;
// nie wykorzystywane
virtual void think() {};
// nakazuje AI cofnac ruch
virtual void undo() = 0;
// zwraca nazwe AI
virtual const char* name() const = 0;
virtual ~OXPlayer(){};
};
void WriteLog(int points, int nSearched, int speed, int depth, bool debug);
#endif