Currently the methods to generate moves for pieces include checks, wether or not the moves are legal, e.g. checks for king in check.
This is undesirable, since in alternative modes like antichess the rules are different than in regular chess but the pieces move the same way.
If the code is uncoupled the same code could be used for move generation for antichess and regular chess.
Currently the methods to generate moves for pieces include checks, wether or not the moves are legal, e.g. checks for king in check.
This is undesirable, since in alternative modes like antichess the rules are different than in regular chess but the pieces move the same way.
If the code is uncoupled the same code could be used for move generation for antichess and regular chess.