11-30-2020, 03:43 PM
(This post was last modified: 12-04-2020, 01:34 PM by Eric Piette.)
Hi,
So for b) That's up to the player to select with which piece to swap no?
If this is the case you will have to check if the last piece added is in a crosscut pattern, if that's the case (moveAgain).
Then in the next move, allow the player to swap the last piece played to one of the enemy piece in the crosscut, if that piece still belong to a crosscut pattern (moveAgain) once again etc.... until no crosscut pattern is detected.
However that would be much easier with a (sites Pattern ...) ludeme to get all the sites in the pattern.
Regards,
Eric
So for b) That's up to the player to select with which piece to swap no?
If this is the case you will have to check if the last piece added is in a crosscut pattern, if that's the case (moveAgain).
Then in the next move, allow the player to swap the last piece played to one of the enemy piece in the crosscut, if that piece still belong to a crosscut pattern (moveAgain) once again etc.... until no crosscut pattern is detected.
However that would be much easier with a (sites Pattern ...) ludeme to get all the sites in the pattern.
Regards,
Eric