20 Commits

Author SHA1 Message Date
seppedl 3341c3922a [update] Documentation for heuristic, fork detection, and playable threats.
Updated Background information.md, Achtergrondinformatie.md, and
README.md to describe the improved AI: playable vs non-playable
threat scoring, fork detection bonus, and the split Phase 1 strategy.
README now lists all three implementations and the AI strategy section.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-27 17:00:10 +01:00
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 54bae2faf5 [update] Documentation. 2026-03-27 13:41:47 +01:00
seppedl 1c370f80a6 [fix] Add heuristic to Python code. 2026-03-27 13:29:07 +01:00
seppedl 025f0457c7 [fix] Non heuristic moves... 2026-03-27 12:17:25 +01:00
seppedl 223fc91b19 [add] Javascript version for Matthis and Jef. 2026-03-21 16:41:39 +01:00
seppedl d5345c6cee {add] Python TEXT game for Jef! 2026-03-21 16:27:12 +01:00
seppedl 3257d40722 [update] Background information and Dutch translation with blunder mode section.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-21 16:03:48 +01:00
seppedl f9d100f918 [update] README for blunder mode, WIFI_SSID, and DEMO_RESET_PAUSE build flags.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-21 16:03:46 +01:00
seppedl 0fc20da274 [refactor] Replace hardcoded values with build flags and cleanup duplicates.
- Add #ifndef guards for pin defines duplicated between platformio.ini and main.cpp
- Use DEFAULT_LOOK_AHEAD, DEFAULT_BRIGHTNESS, DEFAULT_IDLE_TIMEOUT, DEMO_RESET_PAUSE
  build flags instead of hardcoded magic numbers
- Add WIFI_SSID build flag for configurable access point name
- Remove unused build flags (BRIGHTNESS, IDLE_TIMEOUT, DEBOUNCE_DELAY)
- Remove progressive difficulty / evolution feature (getDynamicPly)
- Replace goto with structured control flow in performAiMove
- Deduplicate checkGameEnd win/draw branches
- Implement blunder mode: configurable chance (%) to pick a random column,
  preserving instant win/block detection

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-21 16:03:41 +01:00
seppedl 2eecc94cfd [update] 3D print model 2026-03-19 10:42:36 +01:00
seppedl 913b0c92c1 [fix] Disable autoupdate for FastLED because of audio bug 2026-03-19 10:10:38 +01:00
seppedl 7725226dfc [add] Frame stl. 2026-03-15 18:02:09 +01:00
seppedl 7118738818 [update] Background information and add Dutch translation. 2026-03-15 16:19:01 +01:00
seppedl f489442cb5 [refactor] Game log, persistence, demo mode, indicator LED, and documentation. 2026-03-15 15:47:43 +01:00
seppedl b5d696bf30 [fix] Demo interrupt, encoder sensitivity, and win delay. 2026-03-15 15:47:43 +01:00
seppedl 3e29a2e4da [fix] AI killer instinct, border toggle, and animation timing. 2026-03-15 15:47:43 +01:00
seppedl da63f05ac3 [update] Progressive difficulty, demo fixes, and background docs. 2026-03-15 15:47:43 +01:00
seppedl 8a776dfae5 [add] Autoplay demo, web config, and WiFi AP. 2026-03-15 15:47:42 +01:00
seppedl cea3cdad37 Initial commit. 2026-03-06 09:49:23 +01:00