feat: prise de coin par puissance et conservation de jan #18

This commit is contained in:
Henri Bourcereau 2024-08-11 20:43:02 +02:00
parent 41b07d5ce2
commit 90c3db3ba7
2 changed files with 64 additions and 8 deletions

View file

@ -303,7 +303,7 @@ impl Board {
// the square is blocked on the opponent rest corner
let opp_corner_field = if color == &Color::White { 13 } else { 12 };
self.passage_blocked(color, field)
.map(|blocked| blocked || opp_corner_field == field)
// .map(|blocked| blocked || opp_corner_field == field)
}
pub fn passage_blocked(&self, color: &Color, field: Field) -> Result<bool, Error> {