From 54afeb6dd89fffae92274cb6fe2e9a86fd57c6e3 Mon Sep 17 00:00:00 2001 From: Aargh Rai Date: Sat, 15 Aug 2026 15:15:21 +0530 Subject: phase B --- PLAN.md | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'PLAN.md') diff --git a/PLAN.md b/PLAN.md index 7581307..7bd8bf4 100644 --- a/PLAN.md +++ b/PLAN.md @@ -316,6 +316,12 @@ build (`just test`) green before the next. - [ ] **B3.** `just test` — all 17 original tests + new search/eval tests green. ### Phase C — Root thread driver (still effectively single-worker) +- [ ] **C0.** Fix required. src/engine/ttable.c — zobrist_hash scanned all 64 + squares via find_piece_on_square, which asserts on empty squares. + The per-node TT probe made search hit this on any non-full-board position. + Rewrote the piece loop to iterate occupied bitboards + (castling/turn/en-passant tail unchanged). + No existing test asserts on zobrist_hash output, so nothing regressed. - [ ] **C1.** Rewrite `root_thread` in `src/engine/thread.c` to run iterative deepening using `search()`, populating the `engine_message` each depth and respecting `args->stop` + `should_continue`. -- cgit v1.2.3