01-06-2021, 07:50 AM
(This post was last modified: 01-06-2021, 07:50 AM by Eric Piette.)
Hi,
On the other thread I told you to put all the stuff related to all the pieces in the move generator of the piece in calling (forEach Piece) and everything which is more specific (so not related to ALL the pieces) not in the move generator.
So for your cases, a pass move or something for one single piece to replay in checking "SameTurn" that's not for all the pieces so that should not be in the move generator of a piece, but for a hop move for ALL the pieces that should be in the move generator of the piece.
You can not simply say I want to put everything in the play or everything in the move generator. Each part of the logic has a right place according to what you want them to do.
Regards,
Eric
On the other thread I told you to put all the stuff related to all the pieces in the move generator of the piece in calling (forEach Piece) and everything which is more specific (so not related to ALL the pieces) not in the move generator.
So for your cases, a pass move or something for one single piece to replay in checking "SameTurn" that's not for all the pieces so that should not be in the move generator of a piece, but for a hop move for ALL the pieces that should be in the move generator of the piece.
You can not simply say I want to put everything in the play or everything in the move generator. Each part of the logic has a right place according to what you want them to do.
Regards,
Eric