Monday, 28 April 2008

AI

I finally found the bug in my AI ACW last night after 3 solid days of working on it, as I fixed it I am now at a winning rate of 5/5 for no, 1 and 2 ghost 4/5 for 3 ghost and now testing 4 ghosts. At least is can win now it didn't do that for the last couple of days.
The first version I had could complete the no ghost one, but the next versions couldn't even do that. And i think i still have a minor bug in the path finding when it can't find a path with a value now it always goes to the left bottom corner instead of searching the full grid to see if it can find a path with a dot in it. I also think I need to decrease the value for the bonus when there aren't that many dots left. It will now almost always go for the bonus. I definitely have a problem in the full search as you can see from a the screen shots.
Ah well here is a screen shot:

No comments: