Giancarmine Salucci 185f7c36c7 perf(ai): optimize AI decision speed — fast clone, reduced search, time budget
SCOPONE-0005 iteration 8

- Replace JSON.parse/stringify deepClone with hand-written cloneState() (~10-50x faster)
- Export cloneState from engine.ts, use in applyMove and generateSamples
- Master: reduce samples 24→10 (14 endgame), depth 8→6 (8 endgame)
- Add 1.5s time budget with early termination in masterMove and alphaBeta
- evaluateFast(): single-pass pile scan, zero array allocations at leaf nodes
- Simplified move ordering in alphaBeta (captures-first, no per-move eval)
- Skip countScopaThreats when tableSum >= 11 (impossible to clear)
- Remove unused calcPrimiera import from ai.ts
2026-03-31 23:34:22 +02:00
2026-03-31 18:38:34 +02:00
2026-03-31 18:38:34 +02:00
2026-03-31 18:38:34 +02:00
2026-03-31 21:07:28 +02:00
2026-03-31 18:38:34 +02:00
2026-03-31 18:38:34 +02:00
2026-03-31 18:38:34 +02:00
2026-03-31 18:38:34 +02:00
2026-03-31 18:38:34 +02:00
2026-03-31 18:38:34 +02:00
2026-03-31 18:38:34 +02:00
2026-03-31 18:38:34 +02:00
Description
No description provided
10 MiB
Build 245 Latest
2026-05-25 21:28:58 +02:00
Languages
TypeScript 99.3%
Java 0.6%
HTML 0.1%