• Sam Moore's avatar
    Added new sample AI - "vixen" · 3d01a564
    Sam Moore authored
    I was going to create a highly advanced super AI and not reveal the source code. Then I would win the competition!
    But, turns out it is just as shit as all the others, so I added it to git. Also I made the competition, so that seems fairly self defeating.
    
    "vixen" (where do I get these names? Well, a fox is smart, and a vixen is a fox. Therefore, "vixen" is a smart AI. Q.E.D)
    
    I basically copied asmodeus' "optimised score" and path finding technique, but I changed the way scores are calculated to include probability.
    At one point I was adding the scores for paths that began with the same direction. This seemed like a brilliant idea. It was not.
    
    After all this, vixen beats asmodeus some of the time, I haven't tested how often, but each AI has beaten the other at least a few times.
    Most of the time vixen loses seems to be due to losing the marshal or general on bombs. Its pretty good at countering the spy.
    
    It turns out writing a decent stratego AI is harder than I thought :P
    
    In other news, in the manager program, I removed the automatic hiding of the AI's pieces when a human is playing, because its useless and annoying.
    3d01a564
basic_python.py 9.9 KB