
Originally Posted by
Lazy
Thanks mate, I just decided to blindly enter. I started early with the competition but then life forced my attention elsewhere. So now to try to test it, I stripped out all my pruning, removed my attack algo and I'm not sure it's saving data correctly. So I'm stuck with a basic defensive AI, that has at least a good wall hugging ability. Heck I don't even know if it works.
Alas, at least I entered
Best of luck to you too!
You should perhaps just play your bot against itself, if its doing anything wrong its usually pretty obvious to spot. You don't need to use a harness, you can just swop the board around after each run.
The below python code swops the board file.
Code:
import sys
f = open(sys.argv[1])
lines = f.readlines()
lines=''.join(lines)
lines=lines.replace('YourWall','zWall')
lines=lines.replace('You','zyou')
lines=lines.replace('OpponentWall','YourWall')
lines=lines.replace('Opponent','You')
lines=lines.replace('zWall','OpponentWall')
lines=lines.replace('zyou','Opponent')
f = open(sys.argv[1], 'w')
f.write(lines)
f.close()
Its how I did 99% of my testing, plus if you keep older versions of your bot you can get them to play against each other to see which is better.
Bookmarks