A game-solving program must remember the positions it has reached so that it
can avoid endless loops such as D3 moving from S4 to C4 and back again, over
and over. So, when your program reaches a new position, record it. Then if it
ever again moves forward into that position, it will know to back up. But if it
reaches that position again while moving backward, it's allright to move
forward from there.
Good luck,
Bill Raymond
Received on Wed Nov 12 2003 - 23:36:13 IST