get_jans check quit corner

This commit is contained in:
Henri Bourcereau 2024-06-14 19:07:33 +02:00
parent 310d96f3bc
commit 1af5694b71
2 changed files with 21 additions and 5 deletions

View file

@ -140,7 +140,7 @@ impl MoveRules {
}
/// ---- moves_allowed : Third of three checks for moves
fn moves_allowed(&self, moves: &(CheckerMove, CheckerMove)) -> Result<(), MoveError> {
pub fn moves_allowed(&self, moves: &(CheckerMove, CheckerMove)) -> Result<(), MoveError> {
self.check_corner_rules(&moves)?;
if self.is_move_by_puissance(moves) {