Review: a hard only move is brilliant too; the owner's plain moves join the check set
The shallow search (5 000 nodes) is on: the only good move (10 % ahead) that a shallow search ranks 30 % lower is !! even without a sacrifice - 17...Be6!! of Byrne - Fischer and 33.c3+!! of Kasparov - Topalov; !! of chess.com found 35 of 39 (was 32), 95 % of ours right, no wrong one added. Not used for ! (it would take nearly every ! away). The owner's two games with 10.Be2 and Ra7, which he calls plain, join the set with an OwnerPlain tag the checker enforces. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
6004be32bb
commit
90b20c0376
7 changed files with 87 additions and 5 deletions
|
|
@ -36,3 +36,9 @@ cargo run --release -p game-review --example chesscom_check -- <stockfish>
|
|||
chess.com. Числа зависят только от правил и версии поиска: калибровки 1–7 делались на
|
||||
3M узлов и 12 потоках, после перехода на фиксированный поиск (1M, один поток) они
|
||||
пересчитаны (`docs/decisions.md`).
|
||||
|
||||
## Вердикты владельца
|
||||
|
||||
Партии `owner-*.pgn` — без отметок chess.com: тег `OwnerPlain` перечисляет ходы (SAN), которые
|
||||
владелец считает очевидными; ни «!», ни «!!» на них быть не должно. Прогон печатает такие
|
||||
нарушения строкой `OWNER` и считает их в итоговой строке.
|
||||
|
|
|
|||
15
crates/game-review/chesscom/owner-matovalov-1.pgn
Normal file
15
crates/game-review/chesscom/owner-matovalov-1.pgn
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
[Event "rated rapid game"]
|
||||
[Site "https://lichess.org/game/GPGwoXk9"]
|
||||
[Date "2026.10.29"]
|
||||
[White "Matovalov"]
|
||||
[Black "SrihasSM"]
|
||||
[Result "1-0"]
|
||||
[OwnerPlain "Be2"]
|
||||
[Annotator "The owner: 10.Be2 is no ! (2026-10-29)"]
|
||||
|
||||
1. e4 e6 2. d4 d5 3. e5 c5 4. c3 Nc6 5. Nf3 Nge7 6. Na3 Bd7 7. Nc2 Nf5 8. Bd3
|
||||
Nh4 9. O-O c4 10. Be2 Nxf3+ 11. Bxf3 Be7 12. Bf4 b5 13. a3 Qb6 14. Be3 O-O-O 15.
|
||||
a4 b4 16. a5 Nxa5 17. cxb4 Nb3 18. Ra3 Kc7 19. Bd2 Bb5 20. Bc3 g5 21. Na1 Nxa1
|
||||
22. Qxa1 a6 23. Qd1 Qc6 24. Bh5 Qe8 25. Qa1 Kb7 26. Bd1 Qf8 27. Ba4 Ra8 28. Bxb5
|
||||
axb5 29. Ra5 Kb6 30. Qa3 Rxa5 31. Qxa5+ Kc6 32. Qa6+ Kc7 33. Qa7+ Kc8 34. Ra1
|
||||
Bd8 35. Qa6+ Kc7 36. Qxb5 1-0
|
||||
27
crates/game-review/chesscom/owner-matovalov-2.pgn
Normal file
27
crates/game-review/chesscom/owner-matovalov-2.pgn
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
[Event "rated rapid game"]
|
||||
[Site "https://lichess.org/game/Sc0SWXkI"]
|
||||
[Date "2026.10.29"]
|
||||
[White "Matovalov"]
|
||||
[Black "Karataschessnew"]
|
||||
[Result "1-0"]
|
||||
[OwnerPlain "Ra7 Ra7+"]
|
||||
[Annotator "The owner: Ra7 is no ! (2026-10-29)"]
|
||||
|
||||
1. e4 e5 2. Nf3 Nc6 3. d4 exd4 4. Bc4 Nf6 5. e5 Ne4 6. O-O d5 7. exd6 Nxd6 8.
|
||||
Re1+ Be7 9. Bb3 Bg4 10. h3 Bxf3 11. Qxf3 Qd7 12. Bf4 O-O 13. Nd2 Bf6 14. Bxd6
|
||||
Qxd6 15. Ne4 Qe7 16. Nxf6+ Qxf6 17. Qxf6 gxf6 18. Rad1 Rad8 19. Rd2 Rd6 20. Red1
|
||||
Kg7 21. Ba4 f5 22. Rd3 Kf6 23. R1d2 Rfd8 24. Bxc6 Rxc6 25. Re2 Re6 26. Red2 Re1+
|
||||
27. Kh2 c5 28. b4 cxb4 29. Rxd4 Rxd4 30. Rxd4 a5 31. Rd5 a4 32. Rb5 Rb1 33. Rxb7
|
||||
Rb2 34. f4 a3 35. Rb6+ Kg7 36. Rb5 Rxa2 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
||||
let defaults = Hardness::default();
|
||||
let hardness = Hardness {
|
||||
great: number("CP_GREAT_HARD"),
|
||||
great: number("CP_GREAT_HARD").or(defaults.great),
|
||||
gap: number("CP_GREAT_GAP").unwrap_or(defaults.gap),
|
||||
bans: number("CP_GREAT_BANS").is_none_or(|b| b != 0.0),
|
||||
brilliant: number("CP_BRILLIANT_HARD"),
|
||||
// `CP_BRILLIANT_HARD=0`: off.
|
||||
brilliant: number("CP_BRILLIANT_HARD")
|
||||
.map(Some)
|
||||
.unwrap_or(defaults.brilliant)
|
||||
.filter(|p| *p > 0.0),
|
||||
brilliant_gap: number("CP_BRILLIANT_GAP").unwrap_or(defaults.brilliant_gap),
|
||||
measure: if number("CP_HARD_DEPTH").is_some_and(|d| d != 0.0) {
|
||||
Measure::Depth
|
||||
|
|
@ -85,6 +89,7 @@ fn main() {
|
|||
files.sort();
|
||||
|
||||
let (mut agree, mut differ) = (0, 0);
|
||||
let mut owner_wrong = 0;
|
||||
// Per mark ("!!", "!"): chess.com's, found by us, ours chess.com has not.
|
||||
let mut tally = [Tally::default(), Tally::default()];
|
||||
for file in files {
|
||||
|
|
@ -103,6 +108,26 @@ fn main() {
|
|||
file.file_name().unwrap().to_string_lossy(),
|
||||
);
|
||||
let line = a.line().to_vec();
|
||||
// The owner's verdict, no chess.com marks: these moves (SAN, as in the game) must
|
||||
// not get ! or !! — obvious moves the owner called out ("10.Be2 — какой же это !").
|
||||
if let Some(plain) = game.tag("OwnerPlain") {
|
||||
let plain: Vec<&str> = plain.split_whitespace().collect();
|
||||
for (i, j) in a.report.judgements.iter().enumerate() {
|
||||
let Some(j @ (Judgement::Brilliant | Judgement::Great)) = j else {
|
||||
continue;
|
||||
};
|
||||
let label = game.move_label(line[i + 1]).unwrap_or_default();
|
||||
let san = label.rsplit(' ').next().unwrap_or_default();
|
||||
let mark = if *j == Judgement::Brilliant { "!!" } else { "!" };
|
||||
if plain.contains(&san) {
|
||||
owner_wrong += 1;
|
||||
println!(" OWNER {label:<14} ours {mark}, the owner: plain");
|
||||
} else {
|
||||
println!(" ours {label:<14} {mark}");
|
||||
}
|
||||
}
|
||||
continue;
|
||||
}
|
||||
// Only chess.com's totals are known ("white !! 0 ! 1, black !! 2 ! 1"): compare
|
||||
// counts, list our marks, leave the game out of the shares.
|
||||
if let Some(counts) = game.tag("ChessComCounts") {
|
||||
|
|
@ -189,7 +214,7 @@ fn main() {
|
|||
}
|
||||
}
|
||||
}
|
||||
println!("\nagree {agree}, differ {differ}");
|
||||
println!("\nagree {agree}, differ {differ}, owner's plain moves marked {owner_wrong}");
|
||||
for (t, mark) in tally.iter().zip(["!!", "!"]) {
|
||||
println!(
|
||||
"{mark:<2} chess.com {:>3} found {:>3} ({}) ours not chess.com's {:>3} (ours {}, {} of them chess.com's)",
|
||||
|
|
|
|||
|
|
@ -560,6 +560,11 @@ mod tests {
|
|||
n
|
||||
};
|
||||
let mut a = GameAnalysis::new(&game, None);
|
||||
// Rules that do not ask how hard a move was: no shallow search.
|
||||
a.set_hardness(crate::Hardness {
|
||||
brilliant: None,
|
||||
..Default::default()
|
||||
});
|
||||
assert_eq!(job(&mut a, true), 3);
|
||||
let e = a.eval_at(0).expect("evaluated").clone();
|
||||
assert_eq!(e.pv.first().map(String::as_str), Some("e2e4"));
|
||||
|
|
|
|||
|
|
@ -221,8 +221,11 @@ impl Default for Hardness {
|
|||
great: None,
|
||||
gap: good::GAP_CHESSCOM,
|
||||
bans: true,
|
||||
brilliant: None,
|
||||
brilliant_gap: good::GAP_CHESSCOM,
|
||||
// On by the owner's word (2026-10-29): +2 !! of chess.com's in the check set
|
||||
// (90 % found, 95 % right), no wrong one added; the same over 2 000–5 000
|
||||
// nodes and thresholds 20–40 %.
|
||||
brilliant: Some(30.0),
|
||||
brilliant_gap: 10.0,
|
||||
measure: Measure::Choice,
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue