Quote:
Originally Posted by BenChen
Hi kartu,
I have had a look at this problem. I have been able to replicate the error, and I have discovered that for some totally unexplainable reason the AI fails to produce a valid move (even though a valid move is available). I have tried to track the bug in the AI routines down, but I am afraid it is beyond me: that's the problem with using someone else's code! The best I can do is modify the code to output a message like "AI failed. Sorry!"
I have only seen this problem in "slow" mode, so if it happens again and the "AI failed. Sorry!" message appears, the user can manually do a move for black. Then the user can undo (going back 2 steps). If the AI speed is changed to something other than "Slow" then when the user makes the same move that caused the problem in the first place the AI should work properly and the game can continue.
It's a work-around, but it's probably the best I can manage...
Sincerely,
Ben.
|
Actually, I worked out a way to (temporarily) drop the level of the AI. So if it encounters a situation where "slow" mode fails, it tries "medium" (which works in the case discovered by the person who reported the problem), and if that fails, then it tries "fast" mode. If it still fails, then it outputs an AI failure message.