Files
Rigby/src
rektdieandclaude cdeb318016 feat: expand nodes on their second visit
Most leaves are visited only once. Their first visit now only settles
terminal states and evaluates the position; the move list, the priors
and the child nodes are created when search comes back a second time.
The root is expanded before the first playout, so a search always has a
move.

With the value network the tree is full on nearly every move at
8+0.08 with Hash=64 (hashfull 1000 in a 30-ply self-play diagnostic);
with this change many moves stay at 320-890. The -DRIGBY_VERIFY_TREE
build passed 1700 tree checks in UCI-driven self-play with 1 MB and
16 MB Hash, and a 1-playout search still returns a move.

Rebased from the earlier expand-second-visit branch onto the network
main, without the tree collection it was built on.

Bench: 546018

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 04:21:06 +01:00
..
2026-11-15 00:31:20 +01:00
2026-11-15 04:12:52 +01:00
2026-11-15 00:31:20 +01:00
2026-11-15 00:31:20 +01:00
2026-11-15 04:12:52 +01:00
2026-11-15 00:31:20 +01:00
2026-11-15 00:31:20 +01:00
2026-11-15 00:31:20 +01:00
2026-11-15 00:31:20 +01:00
2026-11-15 00:31:20 +01:00