-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings.py
More file actions
37 lines (24 loc) · 1.32 KB
/
settings.py
File metadata and controls
37 lines (24 loc) · 1.32 KB
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
__author__ = "Lech Szymanski"
__organization__ = "COSC343/AIML402, University of Otago"
__email__ = "lech.szymanski@otago.ac.nz"
# You can manipulate these settings to change how the game is played.
game_settings = {
"agentFiles": ("my_agent.py", "random_agent.py"), # agent files that play the game,
# (replace human_agent with my_agent.py when
# your agent is ready)
"cardValues": (1,2,3,4,5,6), # value of the cards to bid with
"itemValues": (-2,-1,1,2,3,4), # values of the items to bid on (must be same length as cardValues)
"totalNumberOfGames": 100, # total number of games played
"verbose": False,
"seed": 0 # seed for random choices of bids in the game, None for random seed
}
# If main is run, create an instance of the game and run it
if __name__ == "__main__":
from raj import RajGame
game = RajGame(card_values=game_settings['cardValues'],
item_values=game_settings['itemValues'],
num_players=len(game_settings['agentFiles']),
verbose=game_settings['verbose'])
game.run(agentFiles=game_settings['agentFiles'],
num_games=game_settings['totalNumberOfGames'],
seed=game_settings['seed'])