I had managed to solve the errors in question but still I have not managed to write a function for the king that castles free. It has to have the normal move once it has moved before, but only the three forward move otherwise. This is done because the first lateral move may be a regular move or a castling move and this ambiguity would be treated later with the ask command.
Fergus,
I had managed to solve the errors in question but still I have not managed to write a function for the king that castles free. It has to have the normal move once it has moved before, but only the three forward move otherwise. This is done because the first lateral move may be a regular move or a castling move and this ambiguity would be treated later with the ask command.