-
Notifications
You must be signed in to change notification settings - Fork 0
/
game.py
50 lines (34 loc) · 1009 Bytes
/
game.py
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
class GameStatus:
in_progress = 0
player_1_wins = 1
player_2_wins = 2
nobody_wins = 3
killed = 4
class TeachableGame:
@staticmethod
def get_feature_dimensions():
raise Exception("not implemented")
@staticmethod
def get_action_space():
raise Exception("not implemented")
@staticmethod
def get_name():
raise Exception("not implemented")
def get_state_as_features(self, player_to_move):
raise Exception("not implemented")
def get_move_legality(self, player):
raise Exception("not implemented")
def get_legal_moves(self, player):
raise Exception("not implemented")
def get_status(self):
raise Exception("not implemented")
def get_winner(self):
raise Exception("not implemented")
def copy(self):
raise Exception("not implemented")
def complete_as_rollout(self, player_to_move):
raise Exception("not implemented")
def zobrist_hash(self):
raise Exception("not implemented")
def zobrist_hash_for_child(self, move, player):
raise Exception("not implemented")