I’m trying to adapt the code for fisher960 random starting positions. I can do that but while playing against the AI after a few moves it gives the busted output. The last move the AI tries to play is mostly a rook move b8-c6 etc but another piece is on b8 at the time due to the random starting positions. Two player mode works as expected. I can bypass the busted else but then I have to choose a move from the movelist in some nonstandard way. Any advice or will the solution become complicated? If there is somewhere I can read more about this code structure and logic maybe point me to it?
I’m trying to adapt the code for fisher960 random starting positions. I can do that but while playing against the AI after a few moves it gives the busted output. The last move the AI tries to play is mostly a rook move b8-c6 etc but another piece is on b8 at the time due to the random starting positions. Two player mode works as expected. I can bypass the busted else but then I have to choose a move from the movelist in some nonstandard way. Any advice or will the solution become complicated? If there is somewhere I can read more about this code structure and logic maybe point me to it?