Pulling out magic numbers into conf.py.
[progcomp10.git] / src / conf.py
diff --git a/src/conf.py b/src/conf.py
new file mode 100644 (file)
index 0000000..8ffbb2f
--- /dev/null
@@ -0,0 +1,39 @@
+''' Configuration settings for the RPS simulator. '''
+
+from rpsconst import *
+
+# Enable for verbose output.
+VERBOSE = True
+
+# Enable for even more verbose output.
+DEBUG = True
+
+# How many iterations to run before quitting.
+MAX_ITERATIONS = 150
+
+# How many of each agent to create initially.
+STARTING_POPULATION = 10
+
+# ???
+TRIALS = 1
+
+# How much health to give each agent on birth.
+DEFAULT_HEALTH = 50
+
+# How much health at which an agent can reproduce.
+REPRODUCE_HEALTH = 100
+
+# How much health at which an agent dies.
+DIE_HEALTH = 0
+
+# The age at which to kill any agent.
+MAX_AGE = 100
+
+# Game dynamics - these are not final:
+#                WINNER          TRUTH          ATTPoints, DEFPoints
+pointsTable     [Attacker]      [False] =       (2, -2)
+pointsTable     [Attacker]      [True]  =       (2, -2)
+pointsTable     [Defender]      [False] =       (-2, 2)
+pointsTable     [Defender]      [True]  =       (-2, 2)
+pointsTable     [Tie]           [False] =       (0, 0)
+pointsTable     [Tie]           [True]  =       (1, 1)

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