06-07-2021, 05:50 PM
Hi,
The components on the loop are the only factor to detect a loop. However in your description, you use (is Loop) meaning you look for a loop with the pieces of the mover and starting from the last piece placed.
So when the player P1 is placing a piece which is closing a loop with the pieces of your example you detect it. And when P2 is playing you will never detect a loop because the pieces of P2 are not on the board.
Regards,
Eric
The components on the loop are the only factor to detect a loop. However in your description, you use (is Loop) meaning you look for a loop with the pieces of the mover and starting from the last piece placed.
So when the player P1 is placing a piece which is closing a loop with the pieces of your example you detect it. And when P2 is playing you will never detect a loop because the pieces of P2 are not on the board.
Regards,
Eric