forked from jtilahun/nullptr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplayer.hpp
34 lines (25 loc) · 774 Bytes
/
player.hpp
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
#ifndef __PLAYER_H__
#define __PLAYER_H__
#include <iostream>
#include <vector>
#include <climits>
#include "board.hpp"
class Player
{
public:
Player(Side side);
~Player();
Move *doMove(Move *opponentsMove, int msLeft);
void setBoard(char data[]);
// Flag to tell if the player is running within the test_minimax context
bool testingMinimax;
// Indicator that tells which side the player is on.
Side side;
// Indicator that tells which side the opponent is on.
Side opponentsSide;
private:
int minimax(Board *board, int depth, int alpha, int beta, Side side);
// The player's representation of the board.
Board *board;
};
#endif