Use CheckingPieces to determine which and how many pieces check the king. - If there are no checks, proceed with move generation as normal. - If there is one checking piece, calculate push and capture masks and use those to generate legal moves. - If there are more than one checking pieces, the only legal moves are king moves. Indicate this by setting the push and capture masks to EMPTY. |
||
|---|---|---|
| .. | ||
| src | ||
| Cargo.lock | ||
| Cargo.toml | ||