From a59c6f151767664b372bd5ceba09baf7398f179f Mon Sep 17 00:00:00 2001 From: Daniel Axtens Date: Thu, 9 Sep 2010 21:06:50 +0800 Subject: [PATCH] unbroke botched cap on max agents --- src/conf.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/conf.py b/src/conf.py index 45942e2..0969b27 100644 --- a/src/conf.py +++ b/src/conf.py @@ -2,14 +2,14 @@ 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 = 15 +MAX_ITERATIONS = 1000 # How many of each agent to create initially. STARTING_POPULATION = 10 @@ -29,7 +29,11 @@ DIE_HEALTH = 0 # The age at which to kill any agent. MAX_AGE = 100 -# Game dynamics - these are not final: + +# Cap the number of agents: +MAX_TOTAL_AGENTS = 255 + +# Game dynamics: # WINNER TRUTH ATTPoints, DEFPoints pointsTable [Attacker] [False] = (3, -3) pointsTable [Attacker] [True] = (2, -2) -- 2.20.1