forked from nathansttt/hearts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ProblemState.cpp
executable file
·55 lines (44 loc) · 919 Bytes
/
ProblemState.cpp
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
47
48
49
50
51
52
53
54
#include <stdio.h>
#include <time.h>
#include <math.h>
#include "ProblemState.h"
#include "Player.h"
//#define min(x, y) (((x)>(y))?(y):(x))
//#define max(x, y) (((x)<(y))?(y):(x))
#define VERIFYHASH 0
#define USEHASH 1
//#define RANDOMIZEMOVE
//#define RANDOMIZEMAXN
//Move *lastbest;
//mt_random Move::rand;
ProblemState::ProblemState()
{
searchAgent = 0;
}
void ProblemState::addPlayer(Player *p)
{
delete searchAgent;
searchAgent = p;
}
ProblemState::~ProblemState()
{
}
void ProblemState::deletePlayers()
{
delete searchAgent;
}
void ProblemState::Reset(int NEWSEED)
{
}
int ProblemState::getPlayerNum(Player *p) const
{
return 0;
}
Player *ProblemState::getPlayer(int which) const
{
return searchAgent;
}
void ProblemState::Print(int val) const
{ printf("Can't call virtual GS::Print\n"); exit(1); }
bool ProblemState::Done() const
{ printf("Can't call virtual PS::Done\n"); exit(1); return 0; }