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
|
|
@ -127,10 +127,18 @@ pub fn judge_games(
|
|||
let mut out = Vec::new();
|
||||
for &g in which {
|
||||
let game = &games[g as usize];
|
||||
let mover = if game.white { Color::White } else { Color::Black };
|
||||
let mover = if game.white {
|
||||
Color::White
|
||||
} else {
|
||||
Color::Black
|
||||
};
|
||||
let mut pos = Chess::default();
|
||||
for (i, uci) in game.ucis.iter().enumerate() {
|
||||
let Some(m) = uci.parse::<UciMove>().ok().and_then(|u| u.to_move(&pos).ok()) else {
|
||||
let Some(m) = uci
|
||||
.parse::<UciMove>()
|
||||
.ok()
|
||||
.and_then(|u| u.to_move(&pos).ok())
|
||||
else {
|
||||
break;
|
||||
};
|
||||
if game.player_moves_at(i)
|
||||
|
|
@ -268,7 +276,11 @@ impl PositionCache {
|
|||
|
||||
/// Keeps `eval` unless the cache has one with more nodes; says whether it was kept.
|
||||
pub fn insert(&mut self, key: u64, eval: PositionEval) -> bool {
|
||||
if self.entries.get(&key).is_some_and(|e| e.nodes >= eval.nodes) {
|
||||
if self
|
||||
.entries
|
||||
.get(&key)
|
||||
.is_some_and(|e| e.nodes >= eval.nodes)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
self.entries.insert(key, eval);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue