Skip to content

Commit cabe632

Browse files
docs: add value-head debug logging toggle
1 parent 9c028b3 commit cabe632

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,24 @@ The project uses automated code formatting and linting to maintain consistency:
187187

188188
This ensures consistent interpretation where positive values always represent an advantage for the player whose turn it is. The conversion logic is documented in `src/hooks/useStockfishEngine/engine.ts:138-155`.
189189

190+
#### Maia Value-Head Debug Logging
191+
192+
When testing the value-head play mode (`/play/maia` with `maiaMoveSelectionMode=value_head`), you can enable an opt-in console table that prints each legal move with Maia's evaluated win probability.
193+
194+
Enable in browser DevTools:
195+
196+
```js
197+
localStorage.setItem('maia.valueHeadDebug', 'true')
198+
```
199+
200+
Disable:
201+
202+
```js
203+
localStorage.removeItem('maia.valueHeadDebug')
204+
```
205+
206+
With the flag enabled, each Maia move prints a compact table (`san`, `move`, `maiaWinProb`) in the browser console. This is local-only and does not change behavior unless the flag is set in localStorage.
207+
190208
#### State Management Architecture
191209

192210
The platform uses a Context + Custom Hooks pattern:

0 commit comments

Comments
 (0)