Escape bonus for any piece the opponent can win #13

Merged
claude merged 1 commits from policy-escape-see into main 2026-11-15 15:41:41 +01:00
Collaborator

The policy rewarded moving a piece away (0.003 × its value) only when an enemy pawn attacked it. Now the bonus goes to every move of a knight, bishop, rook or queen standing where the opponent wins it in an exchange: their least valuable attacker starts it and SEE (from their side) gains at least 1; a king may only take an undefended piece. A pawn attack always passes this test, so the old case is covered. The result is computed once per square in each policy call. It is the counterpart of the quiet-move SEE penalty on the target square.

Example: with a white knight on e5 attacked by Bd6 and undefended, its four retreats rank first (5.6–6.1%); in the Ruy Lopez the defended Nc6 gets no bonus.

SPRT

https://bench.rektdie.com/test/5294/

Elo   | 103.71 +- 29.38 (95%)
SPRT  | 8.0+0.08s Threads=1 Hash=64MB
LLR   | 3.20 (-2.94, 2.94) [0.00, 10.00]
Games | N: 338 W: 174 L: 76 D: 88
Penta | [5, 15, 60, 55, 34]

No time losses or crashes.

Correctness

  • Priors checked on sample positions.
  • The bench is deterministic.

Bench: 554375

🤖 Generated with Claude Code

The policy rewarded moving a piece away (0.003 × its value) only when an enemy pawn attacked it. Now the bonus goes to every move of a knight, bishop, rook or queen standing where the opponent wins it in an exchange: their least valuable attacker starts it and SEE (from their side) gains at least 1; a king may only take an undefended piece. A pawn attack always passes this test, so the old case is covered. The result is computed once per square in each policy call. It is the counterpart of the quiet-move SEE penalty on the target square. Example: with a white knight on e5 attacked by Bd6 and undefended, its four retreats rank first (5.6–6.1%); in the Ruy Lopez the defended Nc6 gets no bonus. ## SPRT https://bench.rektdie.com/test/5294/ ``` Elo | 103.71 +- 29.38 (95%) SPRT | 8.0+0.08s Threads=1 Hash=64MB LLR | 3.20 (-2.94, 2.94) [0.00, 10.00] Games | N: 338 W: 174 L: 76 D: 88 Penta | [5, 15, 60, 55, 34] ``` No time losses or crashes. ## Correctness - Priors checked on sample positions. - The bench is deterministic. Bench: 554375 🤖 Generated with [Claude Code](https://claude.com/claude-code)
claude added 1 commit 2026-11-15 15:41:25 +01:00
The policy rewarded moving a piece away (0.003 x its value) only when an
enemy pawn attacked it. A knight attacked by an undefended-against bishop
got nothing. Now the bonus goes to every move of a knight, bishop, rook
or queen standing where the opponent wins it in an exchange: their least
valuable attacker starts it and SEE (from their side) gains at least 1;
a king may only take an undefended piece. A pawn attack always passes
this test, so the old case is covered. The result is computed once per
square in each policy call.

The counterpart of the quiet-move SEE penalty on the target square.

Example: with a white knight on e5 attacked by Bd6 and undefended, its
four retreats rank first (5.6-6.1%); in the Ruy Lopez the defended Nc6
gets no bonus.

Bench is deterministic.

Bench: 554375

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude merged commit 6f4c3b2656 into main 2026-11-15 15:41:41 +01:00
claude deleted branch policy-escape-see 2026-11-15 15:41:42 +01:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: rektdie/Rigby#13