I tried to figure out how to use free castling instead of regular castling, but I got only as far as understanding that the value of the square where the castling piece needs to land, has to be passed to the caslting subroutine. Probably this is how the subroutine makes the difference between the two as otherwise is assumes that it has to jump the king. I don't understand what needs passing from the main program of the preset to go down the functions tree so that will happen :(!
Thanks Fergus!
I tried to figure out how to use free castling instead of regular castling, but I got only as far as understanding that the value of the square where the castling piece needs to land, has to be passed to the caslting subroutine. Probably this is how the subroutine makes the difference between the two as otherwise is assumes that it has to jump the king. I don't understand what needs passing from the main program of the preset to go down the functions tree so that will happen :(!