merge
This commit is contained in:
commit
50e8ea36e8
@ -28,6 +28,8 @@ class Game:
|
||||
'''
|
||||
def __init__(self, name=None, role=None, debug=False, checkpoint_path=None):
|
||||
self.name = name
|
||||
if role is None:
|
||||
raise ValueError("Need a role!")
|
||||
self.role = role
|
||||
self.debug = debug
|
||||
if self.name == "go":
|
||||
@ -127,7 +129,7 @@ class Game:
|
||||
sys.stdout.flush()
|
||||
|
||||
if __name__ == "__main__":
|
||||
game = Game(name="reversi", checkpoint_path=None)
|
||||
game.debug = False
|
||||
game = Game(name="reversi", role="black", checkpoint_path=None)
|
||||
game.debug = True
|
||||
game.think_play_move(utils.BLACK)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user