From: Daniel Axtens Date: Fri, 10 Sep 2010 03:59:39 +0000 (+0800) Subject: some trivial code cleanup X-Git-Tag: v01~5 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=8bb595883c635ac334d8dd67c4f2320256ce3d9b;p=progcomp10.git some trivial code cleanup --- diff --git a/src/arenas/PythonSampleAgents.py b/src/arenas/PythonSampleAgents.py index cdaab5f..e3e0ea8 100755 --- a/src/arenas/PythonSampleAgents.py +++ b/src/arenas/PythonSampleAgents.py @@ -1,6 +1,6 @@ #!/usr/bin/python2.5 '''PythonSampleAgents.py -An areana that runs the sample bots in python. +An arena that runs the sample bots in python. Written by Daniel Axtens for the UCC Programming Competition in 2010. Licensed under an MIT-style license: see the LICENSE file for details. @@ -8,7 +8,5 @@ Licensed under an MIT-style license: see the LICENSE file for details. from SampleAgents import Angel, Lucifer, Dummy, Wash, Streetfighter - -# Import and add your agents here: class arena: Agents = [Angel,Lucifer,Streetfighter,Wash] diff --git a/src/conf.py b/src/conf.py index 0969b27..e8f1d88 100644 --- a/src/conf.py +++ b/src/conf.py @@ -11,10 +11,10 @@ DEBUG = False # How many iterations to run before quitting. MAX_ITERATIONS = 1000 -# 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. @@ -29,8 +29,7 @@ DIE_HEALTH = 0 # The age at which to kill any agent. MAX_AGE = 100 - -# Cap the number of agents: +# Cap the number of agents (set to 0 to disable) MAX_TOTAL_AGENTS = 255 # Game dynamics: