feat: prise de coin par puissance et conservation de jan #18
This commit is contained in:
parent
41b07d5ce2
commit
90c3db3ba7
2 changed files with 64 additions and 8 deletions
|
|
@ -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> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue