My entries in the 2011 Google AI Challenge, including a layer to take the pain out of building antbots.
Python
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
decider
metadecider
.gitignore
MyBot.py
README.md
antmath.py
botBrownian.py
botHedge.py
botKMeans.py
botNavigator.py
environment.py
hedge.py
protocol.py

README.md

ants.py

This is my entry for the 2011 Google AI Challenge in which I reimplemented the ants-protocol layer to solve the problem of friendly ants stepping on each other at a low level. In the end I made it to the 77th percentile.

Usage

If you have the official tools you can play a game with one of my bots via MyBot.py or one of the decider-specific bot*.py files.

  • $ python2 botBrownian.py moves each ant randomly. Since ants cannot step on eachother, they diffuse outward from the anthills.
  • $ python2 botNavigator.py assigns each idle ant to a goal. Ants' goals persist between turns, and unassigned ants diffuse randomly.
  • $ python2 botKMeans.py finds k goals and assigns ants to each of k clusters. Goals have associated too close and too far radii, so ants behave differently for different goals.
  • $ python2 botHedge.py runs 13 simplistic strategies and probabalistically applies them. Then it judges ant behavior based on who collected food without dying and learns to trust or distrust each of the 13 strategies. See the *metadecider** directory.*

More Info


Requires Python 2.7