-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplayer.h
More file actions
executable file
·46 lines (37 loc) · 991 Bytes
/
Copy pathplayer.h
File metadata and controls
executable file
·46 lines (37 loc) · 991 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
40
41
42
43
44
45
46
// ECE 469: Artificial Intelligence, Prof. Sable
// Checkers - by Miraj Patel
// player.h - Defines player class (player's pieces and next available moves)
#ifndef PLAYER_H
#define PLAYER_H
#include "game.h"
#include <cstddef>
#include <vector>
#include <iostream>
//struct Move {
//int startPiece;
//Location end;
//Location jumpedLocations[NUMPIECES];
//int numJumps;
//Move() { startPiece = -1; numJumps = 0;}
/*
Move & operator=(const Move &source) {
startPiece = source.startPiece;
end.row = source.end.row;
end.column = source.end.column;
numJumps = source.numJumps;
for (int i = 0; i < NUMPIECES; i++) {
jumpedLocations[i].row = source.jumpedLocations[i].row;
jumpedLocations[i].column = source.jumpedLocations[i].column;
}
}
*/
//};
class Player {
public:
unsigned int playerNumber;
Player();
int evaluateState(Game (&game));
int AIChooseMove(Game (&game));
int alphabeta(Game (&gameNode), int depth, int alpha, int beta);
};
#endif