3 Commits

Author SHA1 Message Date
seppedl b27032762e [fix] Add heuristic evaluation, fork detection, and Phase 1 win/block split to AI.
Minimax leaf nodes now return a positional score instead of 0, using
playable-threat detection (±100), non-playable threats (±40), fork
bonus (±200), two-in-a-row (±5), and center control (±3). Phase 1
is split into two passes so the AI never blocks when it can win.
Game sequence is now auto-logged to the browser console on game end.
Applied to all three implementations (C++, JS, Python).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-27 16:59:55 +01:00
seppedl 1c370f80a6 [fix] Add heuristic to Python code. 2026-03-27 13:29:07 +01:00
seppedl d5345c6cee {add] Python TEXT game for Jef! 2026-03-21 16:27:12 +01:00