diff --git a/crates/game-review/chesscom/pending/byrne-fischer.pgn b/crates/game-review/chesscom/byrne-fischer.pgn similarity index 65% rename from crates/game-review/chesscom/pending/byrne-fischer.pgn rename to crates/game-review/chesscom/byrne-fischer.pgn index 5af2cc9..127e90a 100644 --- a/crates/game-review/chesscom/pending/byrne-fischer.pgn +++ b/crates/game-review/chesscom/byrne-fischer.pgn @@ -5,10 +5,12 @@ [White "Byrne, Donald"] [Black "Fischer, Robert James"] [Result "0-1"] +[ChessComMarks "!! !"] +[Annotator "chess.com Game Review (owner's screenshot, 2026-10-28)"] 1. Nf3 Nf6 2. c4 g6 3. Nc3 Bg7 4. d4 O-O 5. Bf4 d5 6. Qb3 dxc4 7. Qxc4 c6 8. e4 -Nbd7 9. Rd1 Nb6 10. Qc5 Bg4 11. Bg5 Na4 12. Qa3 Nxc3 13. bxc3 Nxe4 14. Bxe7 Qb6 -15. Bc4 Nxc3 16. Bc5 Rfe8+ 17. Kf1 Be6 18. Bxb6 Bxc4+ 19. Kg1 Ne2+ 20. Kf1 Nxd4+ +Nbd7 9. Rd1 Nb6 10. Qc5 Bg4 11. Bg5 Na4 $3 12. Qa3 Nxc3 13. bxc3 Nxe4 14. Bxe7 Qb6 +15. Bc4 Nxc3 $3 16. Bc5 Rfe8+ 17. Kf1 Be6 $3 18. Bxb6 Bxc4+ 19. Kg1 Ne2+ $1 20. Kf1 Nxd4+ 21. Kg1 Ne2+ 22. Kf1 Nc3+ 23. Kg1 axb6 24. Qb4 Ra4 25. Qxb6 Nxd1 26. h3 Rxa2 27. Kh2 Nxf2 28. Re1 Rxe1 29. Qd8+ Bf8 30. Nxe1 Bd5 31. Nf3 Ne4 32. Qb8 b5 33. h4 h5 34. Ne5 Kg7 35. Kg1 Bc5+ 36. Kf1 Ng3+ 37. Ke1 Bb4+ 38. Kd1 Bb3+ 39. Kc1 Ne2+ 40. diff --git a/crates/game-review/chesscom/pending/README.md b/crates/game-review/chesscom/pending/README.md index c5dce59..f5f5274 100644 --- a/crates/game-review/chesscom/pending/README.md +++ b/crates/game-review/chesscom/pending/README.md @@ -4,13 +4,8 @@ настройке). Когда ответ придёт: отметки chess.com вписать NAG-ами, файл перенести в `chesscom/`, сравнить с прогнозом. -## byrne-fischer.pgn (отдана 2026-10-28) +## Итоги прошлых партий -Предварительный прогноз (Stockfish 19, 1 поток, 1 000 000 узлов; до перехода на -фиксированные параметры разбора — окончательный пересчитать в фиксированном режиме): - -- белые: !! нет, ! нет -- чёрные: 11…Na4 !!, 15…Nxc3 !!; ! — 12…Nxc3, 13…Nxe4, 17…Be6, 18…Bxc4+, 19…Ne2+ - -Заметка: 17…Be6 (ферзь b6 остаётся под боем) у нас «!», не «!!» — ферзь висел и до хода -(правило «Вечнозелёной»: 18…Rg8 у chess.com «!»). Интересно, что скажет chess.com. +- **byrne-fischer.pgn** (2026-10-28): прогноз до ответа — !! 2 из 3 (17…Be6!! не нашли: ферзь + висел и до хода), ! 1 из 1, лишних ! 4 (12…Nxc3, 13…Nxe4, 18…Bxc4+, 17…Be6 как «!»). + Перенесена в набор. diff --git a/crates/game-review/src/features.rs b/crates/game-review/src/features.rs index 0d3a1e7..f884b7c 100644 --- a/crates/game-review/src/features.rs +++ b/crates/game-review/src/features.rs @@ -26,6 +26,7 @@ pub struct MoveFeatures { /// A pawn moved (not taking) to a square where the opponent wins it: offered, but /// brilliant only for a quicker mate (29…b5+!! of Pillsbury — Lasker). pub pawn_offered: bool, + pub capture: bool, /// A capture that wins two points or more. pub winning_capture: bool, /// The capture only wins back what the opponent has just taken, elsewhere (18.fxe6! @@ -108,6 +109,7 @@ impl MoveFeatures { pawn_offered: m.role() == Role::Pawn && !m.is_capture() && pseudo_threat(after.board(), m.to(), mover.other()) > 0, + capture: m.is_capture(), winning_capture: m.is_capture() && gain >= 2, takes_back: m.is_capture() && prev.is_some_and(|p| { @@ -347,6 +349,8 @@ mod tests { #[test] fn only_what_the_move_gives_up_is_offered() { // The knight on e5 hangs to the pawn on d6 before and after Ra2: not given by it. + // (Counting a piece left hanging as given would mark 17…Be6!! of Byrne — Fischer, + // but also 11.Rg1, 19.e5 of the Immortal game and more that chess.com does not.) let f = features("4k3/8/3p4/4N3/8/8/8/R3K3 w - - 0 1", "Ra2"); assert!(!f.sacrifice, "{f:?}"); // The rook on e1 guards it; Ra1 takes the guard away: the knight is given up. diff --git a/crates/game-review/src/report.rs b/crates/game-review/src/report.rs index 5e18814..cc58843 100644 --- a/crates/game-review/src/report.rs +++ b/crates/game-review/src/report.rs @@ -217,6 +217,12 @@ fn note(before: Eval, after: Eval, ply: &Ply, rules: Rules) -> Option return Some(Judgement::Brilliant); } let w2 = second?; + // [`Rules::ChessCom`]: a capture is the natural move; great only when every other move + // loses (20.Rxe7+! of the Evergreen game, 18.fxe6! of Pillsbury — Lasker), not when + // another keeps the game (12…Nxc3, 13…Nxe4 of Byrne — Fischer). + if rules == Rules::ChessCom && f.capture && w2 >= good::LOST { + return None; + } // The engine's own best move loses nothing: a drop to the next position is the noise // of two searches (9.Nf5! of the Immortal game, −0.51 then −0.82 at 3M nodes); the // first rules still count it. @@ -416,7 +422,16 @@ impl Report { let mut noted = vec![false; n]; let mut lost = vec![0.0; n]; for i in 0..n { - let ply = plies[i]; + let mut ply = plies[i]; + // Winning back after the opponent took the mover's sacrifice goes on with the + // combination: no trade (18…Bxc4+ of Byrne — Fischer after 17…Be6 18.Bxb6). + if let (Some(f), Some(own)) = ( + ply.features.as_mut(), + i.checked_sub(2).and_then(|k| plies[k].features), + ) && own.sacrifice + { + f.takes_back = false; + } let (Some(before), Some(after)) = (evals[i], evals[i + 1]) else { continue; };