unbroke botched cap on max agents
[progcomp10.git] / src / conf.py
1 ''' Configuration settings for the RPS simulator. '''
2
3 from rpsconst import *
4
5 # Enable for verbose output. (or use -v)
6 VERBOSE = False
7
8 # Enable for even more verbose output.
9 DEBUG = False
10
11 # How many iterations to run before quitting.
12 MAX_ITERATIONS = 1000
13
14 # How many of each agent to create initially.
15 STARTING_POPULATION = 10
16
17 # ???
18 TRIALS = 1
19
20 # How much health to give each agent on birth.
21 DEFAULT_HEALTH = 50
22
23 # How much health at which an agent can reproduce.
24 REPRODUCE_HEALTH = 100
25
26 # How much health at which an agent dies.
27 DIE_HEALTH = 0
28
29 # The age at which to kill any agent.
30 MAX_AGE = 100
31
32
33 # Cap the number of agents:
34 MAX_TOTAL_AGENTS = 255
35
36 # Game dynamics:
37 #                WINNER          TRUTH          ATTPoints, DEFPoints
38 pointsTable     [Attacker]      [False] =       (3, -3)
39 pointsTable     [Attacker]      [True]  =       (2, -2)
40 pointsTable     [Defender]      [False] =       (-2, 2)
41 pointsTable     [Defender]      [True]  =       (-3, 3)
42 pointsTable     [Tie]           [False] =       (0, 0)
43 pointsTable     [Tie]           [True]  =       (1, 1)

UCC git Repository :: git.ucc.asn.au