Table of Contents

ICFP 2004 - Finished and Improved

Finished Version

Jörg has finished the ant program as described in Our Approach. The version can be downloaded from here

See Screenshots.

Improved Version

I could not resist to improve the finished version. I have added a queen that will guard the food storage and some ants that maintain the hill and kill enemies. The new strategy is described below. You can download the source here

See Screenshots

Global Strategy:

There are 4 different kind of ants:

Initial phase:

Queen strategy:

mark path strategy:

explorer strategy:

stay-at-home strategy:

Results:

On map 5 the Black colony has a clear disadvantage since the food is much more far away. The food-storage strategy with the queen and the killer ants shows its potential:

RED   : Rewrite
BLACK : Rewrite2
Map   : sample5.world

Iterations: 10000
Red colony won!
Score: 203 : 62 (Red : Black)
Killed: 1 : 0 (Red : Black)

Iterations: 20000
Red colony won!
Score: 236 : 148 (Red : Black)
Killed: 2 : 1 (Red : Black)

Iterations: 40000
Black colony won!
Score: 202 : 269 (Red : Black)
Killed: 5 : 1 (Red : Black)

Finally:
Iterations: 100000
Black colony won!
Score: 0 : 632 (Red : Black)
Killed: 50 : 1 (Red : Black)

Yeah!