Release 2.1.0
Some checks failed
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run
CI / macos-build (push) Waiting to run
Release / version (push) Has been cancelled
Release / macos (push) Has been cancelled
Release / android (push) Has been cancelled
Release / linux (push) Has been cancelled
Release / flatpak (push) Has been cancelled
Release / windows (push) Has been cancelled
Release / publish (push) Has been cancelled
Some checks failed
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run
CI / macos-build (push) Waiting to run
Release / version (push) Has been cancelled
Release / macos (push) Has been cancelled
Release / android (push) Has been cancelled
Release / linux (push) Has been cancelled
Release / flatpak (push) Has been cancelled
Release / windows (push) Has been cancelled
Release / publish (push) Has been cancelled
Preparing against an opponent (openings), one fixed engine search for the game review everywhere, !! and ! recalibrated on chess.com (check set of 15 games), 100 classic sample games that update with the program. Formatting by cargo fmt. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
dd26e7261a
commit
262c0b1711
28 changed files with 1621 additions and 495 deletions
|
|
@ -968,7 +968,8 @@ impl Base {
|
|||
let mut first = true;
|
||||
moves::main_line(&bytes, 0, fast, |pos, step| {
|
||||
if std::mem::take(&mut first) {
|
||||
line.standard_start = crate::position::same_position(pos, &shakmaty::Chess::default());
|
||||
line.standard_start =
|
||||
crate::position::same_position(pos, &shakmaty::Chess::default());
|
||||
if !line.standard_start {
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -408,9 +408,21 @@ mod tests {
|
|||
assert_eq!(theory_end(10, 0, |_| None), None);
|
||||
// Continuing from a known prefix.
|
||||
let end = theory_end(10, 4, |i| Some(i < 7)).expect("end");
|
||||
assert_eq!(end, TheoryEnd { last_known: Some(6), first_unknown: Some(7) });
|
||||
assert_eq!(
|
||||
end,
|
||||
TheoryEnd {
|
||||
last_known: Some(6),
|
||||
first_unknown: Some(7)
|
||||
}
|
||||
);
|
||||
let end = theory_end(10, 4, |_| Some(true)).expect("end");
|
||||
assert_eq!(end, TheoryEnd { last_known: Some(9), first_unknown: None });
|
||||
assert_eq!(
|
||||
end,
|
||||
TheoryEnd {
|
||||
last_known: Some(9),
|
||||
first_unknown: None
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue