-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBot.h
More file actions
executable file
·39 lines (32 loc) · 873 Bytes
/
Copy pathBot.h
File metadata and controls
executable file
·39 lines (32 loc) · 873 Bytes
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
39
#ifndef BOT_H
#define BOT_H
#include <bits/stdc++.h>
#include "Move.h"
#include "PlaySide.h"
#include "gamestate.h"
class Bot {
private:
static const std::string BOT_NAME;
GameState state;
public:
/* Declare custom fields below */
/* Declare custom fields above */
Bot();
/**
* Record move (either by enemy in normal mode, or by either side
* in force mode) in custom structures
* @param move received move
* @param sideToMode side to move
*/
void recordMove(Move* move, PlaySide sideToMove);
/**
* Calculates next move, in response to enemyMove
* @param enemyMove the enemy's last move
* null if this is the opening move, or previous
* move has been recorded in force mode
* @return your move
*/
Move* calculateNextMove();
static std::string getBotName();
};
#endif // BOT_H