← Projects / A playable experiment
Connect Four,
with a small memory.
Can an AI opponent stop making the same mistake? I built this with Codex, starting with JevHarness, to make that question something I could play with.
You're red. Pick a column or press 1–7. The panel beside the board shows what chose the opponent's last move.
Who's making the move?
The opponent has three layers. Code checks the rules and catches immediate wins, blocks, and double threats. Jev chooses among the eligible moves. A small memory reuses checked corrections when a position, or its mirror, appears again. Each turn is labelled Jev, tactical rule, or learned from games.
At first, I could win by building a row along the bottom while it kept stacking discs in the middle. Saving those games hadn't made it learn. Now a completed game triggers a review: a fixed five-move search checks earlier decisions and saves a better alternative when it finds one. Jev's model weights stay the same; the program around it remembers specific mistakes.
That fixes some repeated blunders. It doesn't establish broad playing strength. The public version uses the same decision flow as the local prototype, adapted for web hosting. Live model turns are included while the demo's allowance lasts; the search opponent uses no model calls.
No sign-in is required. Game moves and decision records are saved to review the opponent's mistakes. You can download your game's record with Save game.