Review: won anyway means a forced mate (ChessCom); three more chess.com games
Every sacrifice of the check set whose best other move also won (up to 93 %) is chess.com's !!, so a won position no longer rules !! out by win % - only a forced mate without the move does. The checker compares games known only by chess.com's totals by count (Levitsky - Marshall). Check set: 10 games. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
69ea1ade15
commit
58aac83927
6 changed files with 94 additions and 3 deletions
15
crates/game-review/chesscom/capablanca-marshall.pgn
Normal file
15
crates/game-review/chesscom/capablanca-marshall.pgn
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
[Event "New York"]
|
||||
[Site "New York USA"]
|
||||
[Date "1918.10.23"]
|
||||
[White "Capablanca, Jose Raul"]
|
||||
[Black "Marshall, Frank James"]
|
||||
[Result "1-0"]
|
||||
[ChessComMarks "!! !"]
|
||||
[Annotator "chess.com Game Review (owner's screenshot, 2026-10-28)"]
|
||||
|
||||
1. e4 e5 2. Nf3 Nc6 3. Bb5 a6 4. Ba4 Nf6 5. O-O Be7 6. Re1 b5 7. Bb3 O-O 8. c3
|
||||
d5 9. exd5 Nxd5 10. Nxe5 Nxe5 11. Rxe5 Nf6 12. Re1 Bd6 13. h3 Ng4 14. Qf3 Qh4
|
||||
15. d4 Nxf2 16. Re2 Bg4 17. hxg4 Bh2+ 18. Kf1 Bg3 19. Rxf2 Qh1+ 20. Ke2 Bxf2
|
||||
21. Bd2 Bh4 22. Qh3 Rae8+ 23. Kd3 Qf1+ 24. Kc2 Bf2 25. Qf3 Qg1 26. Bd5 c5 27.
|
||||
dxc5 Bxc5 28. b4 Bd6 29. a4 a5 30. axb5 axb4 31. Ra6 bxc3 32. Nxc3 Bb4 33. b6
|
||||
Bxc3 34. Bxc3 h6 35. b7 Re3 36. Bxf7+ $3 1-0
|
||||
12
crates/game-review/chesscom/lasker-thomas.pgn
Normal file
12
crates/game-review/chesscom/lasker-thomas.pgn
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
[Event "London"]
|
||||
[Site "London ENG"]
|
||||
[Date "1912.10.29"]
|
||||
[White "Lasker, Edward"]
|
||||
[Black "Thomas, George Alan"]
|
||||
[Result "1-0"]
|
||||
[ChessComMarks "!! !"]
|
||||
[Annotator "chess.com Game Review (owner's screenshot, 2026-10-28)"]
|
||||
|
||||
1. d4 e6 2. Nf3 f5 3. Nc3 Nf6 4. Bg5 Be7 5. Bxf6 Bxf6 6. e4 fxe4 7. Nxe4 b6 8.
|
||||
Ne5 O-O 9. Bd3 Bb7 10. Qh5 Qe7 11. Qxh7+ $3 Kxh7 12. Nxf6+ Kh6 13. Neg4+ $1 Kg5
|
||||
14. h4+ Kf4 15. g3+ Kf3 16. Be2+ Kg2 17. Rh2+ Kg1 18. Kd2# 1-0
|
||||
14
crates/game-review/chesscom/levitsky-marshall.pgn
Normal file
14
crates/game-review/chesscom/levitsky-marshall.pgn
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
[Event "Breslau"]
|
||||
[Site "Breslau GER"]
|
||||
[Date "1912.07.20"]
|
||||
[White "Levitsky, Stepan Mikhailovich"]
|
||||
[Black "Marshall, Frank James"]
|
||||
[Result "0-1"]
|
||||
[ChessComMarks "counts"]
|
||||
[ChessComCounts "white !! 0 ! 1, black !! 2 ! 1"]
|
||||
[Annotator "chess.com Game Review summary only (owner's screenshot, 2026-10-28)"]
|
||||
|
||||
1. d4 e6 2. e4 d5 3. Nc3 c5 4. Nf3 Nc6 5. exd5 exd5 6. Be2 Nf6 7. O-O Be7 8.
|
||||
Bg5 O-O 9. dxc5 Be6 10. Nd4 Bxc5 11. Nxe6 fxe6 12. Bg4 Qd6 13. Bh3 Rae8 14. Qd2
|
||||
Bb4 15. Bxf6 Rxf6 16. Rad1 Qc5 17. Qe2 Bxc3 18. bxc3 Qxc3 19. Rxd5 Nd4 20. Qh5
|
||||
Ref8 21. Re5 Rh6 22. Qg5 Rxh3 23. Rc5 Qg3 0-1
|
||||
|
|
@ -6,6 +6,7 @@
|
|||
use std::path::{Path, PathBuf};
|
||||
use std::sync::atomic::AtomicBool;
|
||||
|
||||
use chess_core::shakmaty::Color;
|
||||
use chess_core::{Game, Nag};
|
||||
use game_review::{GameAnalysis, JobSettings, Judgement, ReviewMeta};
|
||||
|
||||
|
|
@ -47,6 +48,34 @@ fn main() {
|
|||
file.file_name().unwrap().to_string_lossy(),
|
||||
);
|
||||
let line = a.line().to_vec();
|
||||
// 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") {
|
||||
let ours = |white: bool, j: Judgement| {
|
||||
a.report
|
||||
.judgements
|
||||
.iter()
|
||||
.enumerate()
|
||||
.filter(|(i, x)| **x == Some(j) && (a.movers()[*i] == Color::White) == white)
|
||||
.count()
|
||||
};
|
||||
println!(" chess.com: {counts}");
|
||||
println!(
|
||||
" ours: white !! {} ! {}, black !! {} ! {}",
|
||||
ours(true, Judgement::Brilliant),
|
||||
ours(true, Judgement::Great),
|
||||
ours(false, Judgement::Brilliant),
|
||||
ours(false, Judgement::Great),
|
||||
);
|
||||
for (i, j) in a.report.judgements.iter().enumerate() {
|
||||
if let Some(j @ (Judgement::Brilliant | Judgement::Great)) = j {
|
||||
let mark = if *j == Judgement::Brilliant { "!!" } else { "!" };
|
||||
let label = game.move_label(line[i + 1]).unwrap_or_default();
|
||||
println!(" ours {label:<14} {mark}");
|
||||
}
|
||||
}
|
||||
continue;
|
||||
}
|
||||
for i in 0..line.len() - 1 {
|
||||
let node = line[i + 1];
|
||||
let theirs = game.node(node).map_or("", |n| mark_of_nags(n.nags()));
|
||||
|
|
|
|||
|
|
@ -141,7 +141,7 @@ mod good {
|
|||
pub const NEAR_BEST: f64 = 2.0;
|
||||
/// !!: the position after the sacrifice is at least this good.
|
||||
pub const SOUND_AFTER: f64 = 45.0;
|
||||
/// !!: without the move the game was not won anyway.
|
||||
/// !! ([`Rules::Strict`]): without the move the game was not won anyway.
|
||||
pub const WON_ANYWAY: f64 = 90.0;
|
||||
/// !: every other move loses at least this much.
|
||||
pub const GAP: f64 = 10.0;
|
||||
|
|
@ -197,10 +197,19 @@ fn note(before: Eval, after: Eval, ply: &Ply, rules: Rules) -> Option<Judgement>
|
|||
&& ply
|
||||
.second
|
||||
.is_some_and(|s| mates_sooner(after, s, ply.mover));
|
||||
// Won anyway without the move: [`Rules::Strict`] by win %, [`Rules::ChessCom`] only
|
||||
// with a forced mate there — every sacrifice of the check set whose best other move
|
||||
// still won (to 93 %) is chess.com's !! (23…Qg3 of Levitsky — Marshall, 22…Rxc3 of
|
||||
// Rotlewi — Rubinstein).
|
||||
let without_eval = if ply.best { ply.second } else { Some(before) };
|
||||
let won_anyway = match rules {
|
||||
Rules::Strict => without.is_none_or(|w| w >= good::WON_ANYWAY),
|
||||
Rules::ChessCom => without_eval.is_none_or(|e| e.mate_for(ply.mover) == Some(true)),
|
||||
};
|
||||
if f.brilliant_shape(rules)
|
||||
&& (ply.best || loss <= good::NEAR_BEST)
|
||||
&& wa >= good::SOUND_AFTER
|
||||
&& (without.is_some_and(|w| w < good::WON_ANYWAY) || mates_sooner)
|
||||
&& (!won_anyway || mates_sooner)
|
||||
{
|
||||
return Some(Judgement::Brilliant);
|
||||
}
|
||||
|
|
@ -757,12 +766,23 @@ mod tests {
|
|||
);
|
||||
assert_eq!(r.judgements[0], Some(Judgement::Brilliant));
|
||||
assert_eq!(r.white.brilliant, 1);
|
||||
// Another move won as well: no !!.
|
||||
// Another move won as well: still !! by chess.com's marks, no !! by the first
|
||||
// rules; with a forced mate there: no !! either way.
|
||||
let r = Report::build(
|
||||
&evals,
|
||||
&[noted(w, true, Some(Eval::Cp(800)))],
|
||||
Phases::default(),
|
||||
);
|
||||
assert_eq!(r.judgements[0], Some(Judgement::Brilliant));
|
||||
let r = Report::build_with(
|
||||
&evals,
|
||||
&[noted(w, true, Some(Eval::Cp(800)))],
|
||||
Phases::default(),
|
||||
Rules::Strict,
|
||||
);
|
||||
assert_eq!(r.judgements[0], None);
|
||||
let mate = Some(Eval::Mate { white: true, moves: 5 });
|
||||
let r = Report::build(&evals, &[noted(w, true, mate)], Phases::default());
|
||||
assert_eq!(r.judgements[0], None);
|
||||
// No best other move known (an older analysis): nothing said.
|
||||
let r = Report::build(&evals, &[noted(w, true, None)], Phases::default());
|
||||
|
|
|
|||
|
|
@ -178,6 +178,7 @@
|
|||
- **Калибровка 4 (2026-10-28, Стейниц — фон Барделебен по chess.com):** правило калибровки 2 оказалось слишком широким — оно сняло 22.Rxe7+!! и 24.Rg7+!!: после 22…Qxe7 белые отыгрываются 23.Rxc8+, но эту угрозу открыло само взятие (ферзь ушёл с d7). Уточнено: фигура не отдана, только если угроза, отыгрывающая её, стояла уже сразу после хода (18.Bxa7: ферзь d8 под ладьёй до взятия). Оба !! совпали, 18.Bxa7 по-прежнему без !!. Расхождения по «!» в этой партии (у нас лишние 6…Bb4+, 8.exd5, 13.Bxe7, 17.d5, 18.Nd4, 19.Ne6, 23.Rf7+, 25.Rxh7+; нет 18…Kf7) — открыты, см. разбор владельцу.
|
||||
- **Калибровка 5 (2026-10-28, по предложению, владелец согласился «посмотрим»):** правило ChessCom — (а) книжный ход (позиция после хода лежит на линии таблицы дебютов `chess-openings`, крейт `crates/openings`) не получает ни !, ни !!; (б) ! нет, если лучший другой ход оставляет ≥ 60 % (было 75; у всех ! chess.com в наборе — не больше 59 %, запас мал). Убрало 6…Bb4+, 18.Nd4, 23.Rf7+, 25.Rxh7+. Набор: 23 совпадения, 5 расхождений (8.exd5, 13.Bxe7, 17.d5, 19.Ne6 у нас лишние; 18…Kf7 нет — у чёрных 17 %, ! там не ставим); на оценках владельца ещё 10…Nge7.
|
||||
- **Калибровка 6 (2026-10-28, ещё три партии: Пиллсбери — Ласкер, Ротлеви — Рубинштейн, Рети — Тартаковер):** правило ChessCom — (а) атакованная фигура, тихо переставленная под новый бой, — жертва (могла уйти): 18…Ra3!!, 20…Ng4!!; «всё равно потерянной» остаётся только фигура, которая напоследок бьёт (десперадо); (б) взятие, лишь отыгрывающее только что взятое соперником (не на том же поле), — не «выгодное взятие» и может быть «!»: 18.fxe6!; но не когда соперник взял фигуру, которую мы только что отдали (24…Bxe4+ после 23…Rd2 24.Qxd2 — продолжение комбинации); (в) пешка, отданная ради более быстрого мата, — «!!»: 29…b5+ (мат в 4 против 6 у 29…Qc4+). Набор: 7 партий, 38 совпадений, 6 расхождений (23.Rd2 у Пиллсбери: наш движок предпочитает 23.Qh3; остальные 5 — прежние в партии Стейница); на оценках из кэша владельца 35/9 — разброс движка (лучший ход другой, нет второго поиска).
|
||||
- **Калибровка 7 (2026-10-28, ещё три партии; сначала прогон без правок):** Ласкер — Томас, Капабланка — Маршалл (поход по ходам) и Левицкий — Маршалл (только итоговые числа chess.com). До правок на двух партиях с ходами: !! 2 из 2, ! 1 из 1, лишних ! 2 (15.d4, 23.Kd3). Правка, правило ChessCom: «и так выиграно» для !! — только форсированный мат у лучшего другого хода (было: ≥ 90 % шансов); в наборе каждая жертва, где другой ход тоже выигрывал (до 93 %), — !! у chess.com (23…Qg3, 22…Rxc3, 20…Ng4). 22…Rxh3 (Левицкий — Маршалл) жертвой не считается: ладья за слона и пешку — чистая потеря 1 пункт при пороге 2; порог не двигали. 19.Rxd5 у нас !!, у chess.com у белых !! нет — ждём запись ходов.
|
||||
- Второй поиск движка (лучший ход, кроме сыгранного) — **всегда**, только для подходящих ходов: разбор примерно на треть дольше. Старые разборы дозаполняются кнопкой «Обновить» без пересчёта оценок.
|
||||
- Для оценок из PGN (`[%eval]`) !! и ! нет: в отчёте прочерк и пояснение.
|
||||
- В PGN — `$3`/`$1` с комментарием, только если у хода нет оценки автора. Русское имя `$3` — «Блестящий ход» (было «Отличный ход»); «Отличный ход» стал !, затем переименован в «Замечательный ход» (владелец, 2026-10-28).
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue