Tic tac toe has a solved problem: on a 3×3 grid, perfect play from both sides always ends in a draw. Every experienced player knows this. So when we briefed Neon Tic Tac Toe, the question wasn't really "can AI build this?" — it was "what would make this worth playing?"
The AI's answer was configurability. Not a different game — the same game, extended in dimensions that change its character. Three player modes. Variable board sizes. An AI that scales with the complexity of what you give it. The standard game is still there. It's just one configuration among several.
Want to play first, then read the build story?
▶ Play Neon Tic Tac Toe NowThe Core Implementation: Generic Board Logic
The first design decision the AI made was to implement the board as a generic N×N grid rather than a hardcoded 3×3. This is a small architectural choice that has large consequences: a generic board means board size is a parameter, not a constant. Changing it doesn't require rewriting logic — you change the input and the board reconfigures.
Win detection also works generically. The winning condition check scans every row, column, and diagonal for N-in-a-row (where N is the board size). On a 3×3, that means 3-in-a-row. On a 5×5, it's 5-in-a-row by default, though the required win length can also be configured. This means adding larger boards required no changes to win detection — the logic already handled them.
The Three AI Difficulty Levels
Three AI difficulty settings ship with the game: Easy, Medium, and Hard. They work differently, and the distinction matters on larger boards:
Easy plays randomly — it picks from available moves without any strategic evaluation. Against Easy, you can always win by playing a straightforward strategy. It's designed for players new to the game or younger players who don't need a competitive opponent yet.
Medium uses a basic heuristic: it checks whether you're about to win and blocks you, and it checks whether it can win immediately and takes that move. It won't set up multi-step traps, but it won't let you score an obvious win either. Most casual players will find Medium a reasonable opponent.
Hard uses enhanced strategic evaluation that looks further ahead and considers board position more holistically. On a 3×3, where perfect play is mathematically achievable, Hard plays near-perfectly. On a 4×4 or 5×5, full-depth perfect play becomes computationally expensive — the search tree is too large. Hard uses a bounded-depth search with positional heuristics, which produces strong play that's challenging without requiring milliseconds-long computation per move.
The interesting behavior emerges on larger boards: Hard is notably harder on 4×4 and 5×5 than on 3×3, because the larger state space means the AI's advantage over heuristic play compounds. 3×3 Hard can be beaten by a human who knows the game perfectly. 5×5 Hard is harder for a human to analyze and beat.
Three-Player Mode and the Design Problem It Creates
Three-player tic tac toe was in the initial output as an option alongside two-player. We almost removed it as a feature that seemed unlikely to get much use — who plays tic tac toe three at a time? We kept it after testing, because it turned out to fundamentally change the game's dynamics rather than just adding a third participant.
In two-player, the game is symmetrically adversarial: you want to win, your opponent wants to prevent that. In three-player, alliances form tacitly. Player C might block Player A not because it advances C's position, but because allowing A to win is worse than a stalemate that gives B or C a chance. Players have to track two opponents simultaneously — and the player who wins is often the one who correctly identified which opponent to prioritize blocking.
This emergent behavior works best on larger boards. On a 3×3, three-player games tend to end quickly in draws because the grid fills before anyone establishes a winning line. On 4×4 or 5×5, there's enough space for strategy to develop across multiple turns.
Neon Visual System
The visual design was specified as "neon aesthetic" — the same direction as most of the Vibe Arcade collection. What the AI built was a per-player color system: each player gets a distinct neon color that's consistent across their marks, the glow effects on their winning line, and any UI indicators showing whose turn it is.
The color assignments are fixed in a sequence but the three-color combination creates strong visual differentiation in multiplayer — you can always tell at a glance which marks belong to which player. The winning line animation (a neon glow pulse along the winning cells) uses each player's assigned color, so the win screen communicates the winner visually without needing to read text.
What Tic Tac Toe Taught Us About Breadth vs. Depth
Most of our games added depth to a simple concept: Neon Snake got a mission system, Sushi Ninja got recipes. Neon Tic Tac Toe added breadth — more configurations of the same rules rather than more rules. The result is a game that serves different audiences depending on settings rather than serving one audience very well.
A parent playing with a young child uses Easy and 3×3. Two competitive adults use Hard and 5×5. Three people at a party use the three-player mode on whatever board size they choose. The mechanics haven't changed for any of these players — only the configuration has. Breadth rather than depth turned a solved game into something that holds up across multiple use cases.
Play Neon Tic Tac Toe →Related: Free Online Tic Tac Toe Guide · How We Built Neon Snake With AI · Vibe Coding Tools: From Chatbots to AI IDEs