-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathplay_GOPS.py
More file actions
executable file
·43 lines (23 loc) · 952 Bytes
/
play_GOPS.py
File metadata and controls
executable file
·43 lines (23 loc) · 952 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
#!/usr/bin/env python
from gameArena import GameArena
#import all the bots
from bots.simpleBots import *
from bots.alexBots import *
from bots.philBots import *
from bots.brianBots import *
from bots.JamesBots import *
#make python 2 and 3 behave the same for raw input
if hasattr(__builtins__, 'raw_input'):
input = raw_input
#play the game
def main():
#play_method
#quiet = display nothing but the results
#verbose = display everything, including optional bot outputs.
#print_last_game = play quiet until the last game, then display verbose output
#TODO: 1_wins = play quiet until player x wins, stop and display verbose output #TO-DO, not implemented
game = GameArena(num_cards=3, num_games=10, player_arr=[HumanBot, ObviousBot], prize_order='sequential')
game.play(play_method = "verbose")
###########################################################################################
if __name__== "__main__":
main()