diff options
| author | Aargh Rai <aargh.rai+git@gmail.com> | 2026-08-23 16:37:21 +0530 |
|---|---|---|
| committer | Aargh Rai <aargh.rai+git@gmail.com> | 2026-08-23 16:37:21 +0530 |
| commit | 0e107345a54bf987aab0495dbbcf0dcfead131a0 (patch) | |
| tree | 3b425006d17f4655ab2497f7d1c0476db4ba5f24 /PLAN.md | |
| parent | 99de764d1d1b936594643e34ae4d2c4a239f69db (diff) | |
phase F
Diffstat (limited to 'PLAN.md')
| -rw-r--r-- | PLAN.md | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -307,16 +307,16 @@ build (`just test`) green before the next. per-thread args). Build + existing tests still pass. ### Phase B — Sequential search + eval (no threads yet) -- [ ] **B1.** Create `include/engine/evaluate.h` + `src/engine/evaluate.c` +- [x] **B1.** Create `include/engine/evaluate.h` + `src/engine/evaluate.c` with `i32 evaluate(position_t)` (material + simple PST). `#include` in `engine.c`. Add `test_eval_startpos` under `TEST_MOD`. -- [ ] **B2.** Create `include/engine/search.h` + `src/engine/search.c` with +- [x] **B2.** Create `include/engine/search.h` + `src/engine/search.c` with `search_result_t` and `search(...)`. Probe/emit TT. Add `TEST_MOD` tests: `test_search_findmate`, `test_search_respects_depth`. -- [ ] **B3.** `just test` — all 17 original tests + new search/eval tests green. +- [x] **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 +- [x] **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 |
