get_jans check quit corner
This commit is contained in:
parent
310d96f3bc
commit
1af5694b71
2 changed files with 21 additions and 5 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue