Skip to content
Snippets Groups Projects
Commit 8bb59588 authored by Daniel Axtens's avatar Daniel Axtens
Browse files

some trivial code cleanup

parent 48332dd3
Branches
Tags
No related merge requests found
#!/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 <dja@ucc.asn.au> 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]
......@@ -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:
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment