💡📝H. G. Muller wrote on Mon, Oct 23, 2023 06:37 AM UTC:
There is no reason to figure this out experimentally; it follows from how it was coded. And it is coded in a different way for the AI and highlighting in the move diagrams. The latter only ever test two intermediate squares for occupancy, at 1/3 and 2/3 of the leap. The AI attempts to loop through all intermediate squares, but the step it uses for this is only 1 for leaps of length 2, 3 or 4, and it might even get stuck in an infinite loop when it steps per 2 squares, and skips over the destination square.
Anyway, there is no guarantee any of the incorrect behavior will persist; I can change it at any time it would be needed. But so far I never encountered any lame leapers that move further than 4 squares.
There is no reason to figure this out experimentally; it follows from how it was coded. And it is coded in a different way for the AI and highlighting in the move diagrams. The latter only ever test two intermediate squares for occupancy, at 1/3 and 2/3 of the leap. The AI attempts to loop through all intermediate squares, but the step it uses for this is only 1 for leaps of length 2, 3 or 4, and it might even get stuck in an infinite loop when it steps per 2 squares, and skips over the destination square.
Anyway, there is no guarantee any of the incorrect behavior will persist; I can change it at any time it would be needed. But so far I never encountered any lame leapers that move further than 4 squares.