Skip to content

Commit

Permalink
update shakmaty for relaxed castling right validation (lichess-org/li…
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasf committed May 1, 2023
1 parent 422356e commit 9a634bb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ serde = "1"
serde_json = "1"
serde_with = "2"
home = "0.5"
shakmaty = { version = "0.24", features = ["variant"] }
shakmaty = { version = "0.25", features = ["variant"] }
shell-escape = "0.1"
tempfile = "3"
tokio = { version = "1", features = ["rt", "macros", "sync", "time", "signal", "process", "io-util"], default-features = false }
Expand Down
5 changes: 1 addition & 4 deletions src/queue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -539,10 +539,7 @@ impl IncomingBatch {
(EngineFlavor::Official, pos)
}
Ok(pos) => (EngineFlavor::MultiVariant, pos),
Err(pos) => (
EngineFlavor::MultiVariant,
pos.ignore_impossible_material()?,
),
Err(pos) => (EngineFlavor::MultiVariant, pos.ignore_too_much_material()?),
};

let root_fen = Fen(root_pos.clone().into_setup(EnPassantMode::Legal));
Expand Down

0 comments on commit 9a634bb

Please sign in to comment.