Skip to content

Commit 588cbd2

Browse files
docs: mark Phase 2b rook 7th rank + connected passers as implemented
Benchmark results: score 80% (+15% vs 2a), mate rate 60%, rep rate 20%, 0 losses. RunId: phase2b-rook7th-connpassers, commit 52c7aba. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 52c7aba commit 588cbd2

2 files changed

Lines changed: 59 additions & 0 deletions

File tree

docs/ENGINE_ROADMAP.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,20 @@ Goal: Reduce early threefolds without changing time caps.
118118
- Decision: accepted.
119119
- Remaining Phase 2 items (not yet implemented): rook 7th-rank bonus, connected passers, tapered evaluation.
120120

121+
- Phase 2b - Rook on 7th rank + connected passed pawns (implemented, commit 52c7aba)
122+
- Added: rook on 7th rank bonus (+25cp, +10cp extra if opponent king on back rank), connected passed pawn bonus (+15cp base + 5cp/rank advanced).
123+
- Both terms apply to all difficulty levels.
124+
- Added rookSquares tracking to EvalContext.
125+
- 6 new unit tests (134 total passing).
126+
- Self-play results (runId `phase2b-rook7th-connpassers`, Hard 1000ms vs Max 3000ms, 10 games, seed 9001, swap, fenSuite):
127+
- W/D/L (Hard perspective): 6-4-0, score 80%.
128+
- Mate rate: 60% (up from 50% in Phase 2a).
129+
- Repetition rate: 20% (down from 30% in Phase 2a).
130+
- Avg plies: 95.8 (shorter = faster conversion).
131+
- Zero losses (improved from 1 in Phase 2a).
132+
- Decision: accepted.
133+
- Remaining Phase 2 items: tapered evaluation (Phase 2c).
134+
121135
## Phase 3 - Search and ordering improvements (moderate risk)
122136

123137
- Change list (files)
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# Phase 2b: Rook on 7th Rank + Connected Passed Pawns - Execution Record
2+
3+
## Status: ACCEPTED
4+
5+
## Change Summary
6+
- **Commit**: 52c7aba
7+
- **Files**: `src/ai/evaluate.ts`, `src/ai/__tests__/ai.test.ts`
8+
- **Roadmap Phase**: 2b
9+
10+
## Implementation
11+
- Rook on 7th rank bonus: +25cp per rook on 7th rank
12+
- Rook on 7th king trapped bonus: +10cp extra when opponent king on back rank
13+
- Connected passed pawn bonus: +15cp base + 5cp per rank advanced beyond rank 3
14+
- Added rookSquares tracking to EvalContext (populated during piece iteration)
15+
- Both features apply to ALL difficulty levels
16+
17+
## Test Results
18+
- 134 tests passed (128 existing + 6 new)
19+
- Build clean (no new TypeScript errors)
20+
21+
## Benchmark Results (runId: phase2b-rook7th-connpassers)
22+
- Config: Hard 1000ms vs Max 3000ms, 10 games, seed 9001, swap, fenSuite
23+
- W/D/L (Hard perspective): 6-4-0
24+
- Score: 80%
25+
- Mate rate: 60% (Phase 2a baseline: 50%)
26+
- Repetition rate: 20% (Phase 2a baseline: 30%)
27+
- Avg plies: 95.8 (Phase 2a baseline: 103.3)
28+
- Losses: 0 (Phase 2a baseline: 1)
29+
- Early repetitions: 0
30+
31+
## Comparison vs Phase 2a Baseline
32+
33+
| Metric | Phase 2a | Phase 2b | Delta |
34+
|--------|----------|----------|-------|
35+
| Score % | 65% | 80% | +15% |
36+
| Mate rate | 50% | 60% | +10% |
37+
| Repetition rate | 30% | 20% | -10% |
38+
| Avg plies | 103.3 | 95.8 | -7.5 |
39+
| Losses | 1 | 0 | -1 |
40+
41+
## Decision
42+
ACCEPTED - Score +15%, mate rate +10%, repetition rate -10%, zero losses. Shorter games suggest faster conversion. All criteria exceeded.
43+
44+
## Remaining Phase 2 Items
45+
- Tapered evaluation (opening/middlegame/endgame weights) - Phase 2c

0 commit comments

Comments
 (0)