Attempt at fixing memory mess.
[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 # This is 100 for the short version and 1000 for the long version
13 MAX_ITERATIONS = 100
14
15 # How many of each agent to create initially. (or use -n)
16 STARTING_POPULATION = 10
17
18 # Number of times the simulation is run. (or use -t)
19 TRIALS = 1
20
21 # How much health to give each agent on birth.
22 DEFAULT_HEALTH = 50
23
24 # How much health at which an agent can reproduce.
25 REPRODUCE_HEALTH = 100
26
27 # How much health at which an agent dies.
28 DIE_HEALTH = 0
29
30 # The age at which to kill any agent.
31 # This is 100 for the short version and 1000 for the long version
32 MAX_AGE = 100
33
34 # Cap the number of agents (set to 0 to disable)
35 # you may also need to run ulimit -n <some big number like 1000>
36 MAX_TOTAL_AGENTS = 255
37
38 # Game dynamics:
39 #                WINNER          TRUTH          ATTPoints, DEFPoints
40 pointsTable     [Attacker]      [False] =       (3, -3)
41 pointsTable     [Attacker]      [True]  =       (2, -2)
42 pointsTable     [Defender]      [False] =       (-2, 2)
43 pointsTable     [Defender]      [True]  =       (-3, 3)
44 pointsTable     [Tie]           [False] =       (0, 0)
45 pointsTable     [Tie]           [True]  =       (1, 1)

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