Attempt at fixing memory mess.
[progcomp10.git] / src / conf.py
index aabd717..3e3db8b 100644 (file)
@@ -2,19 +2,20 @@
 
 from rpsconst import *
 
-# Enable for verbose output.
-VERBOSE = True
+# Enable for verbose output. (or use -v)
+VERBOSE = False
 
 # Enable for even more verbose output.
 DEBUG = False
 
 # How many iterations to run before quitting.
-MAX_ITERATIONS = 150
+# This is 100 for the short version and 1000 for the long version
+MAX_ITERATIONS = 100
 
-# How many of each agent to create initially.
+# How many of each agent to create initially. (or use -n)
 STARTING_POPULATION = 10
 
-# ???
+# Number of times the simulation is run. (or use -t)
 TRIALS = 1
 
 # How much health to give each agent on birth.
@@ -27,13 +28,18 @@ REPRODUCE_HEALTH = 100
 DIE_HEALTH = 0
 
 # The age at which to kill any agent.
+# This is 100 for the short version and 1000 for the long version
 MAX_AGE = 100
 
-# Game dynamics - these are not final:
+# Cap the number of agents (set to 0 to disable)
+# you may also need to run ulimit -n <some big number like 1000>
+MAX_TOTAL_AGENTS = 255
+
+# Game dynamics:
 #                WINNER          TRUTH          ATTPoints, DEFPoints
-pointsTable     [Attacker]      [False] =       (2, -2)
+pointsTable     [Attacker]      [False] =       (3, -3)
 pointsTable     [Attacker]      [True]  =       (2, -2)
 pointsTable     [Defender]      [False] =       (-2, 2)
-pointsTable     [Defender]      [True]  =       (-2, 2)
+pointsTable     [Defender]      [True]  =       (-3, 3)
 pointsTable     [Tie]           [False] =       (0, 0)
 pointsTable     [Tie]           [True]  =       (1, 1)

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