build Gomoku (Connect 5), offline
- User
build Gomoku (Connect 5), offline
Assistant
Now I'll build the Gomoku game. Let me create the game engine logic first, then the UI.
Now let's create the Board component and main App component.
Now let's update the page title and build the project.
Build succeeded. I've built a fully offline Gomoku (Connect 5) game with:
Gameplay
- 15×15 traditional Go-style board with wooden gradient styling, grid lines, and star points
- Two modes: 2 Players (local pass-and-play) or Vs Computer (heuristic AI opponent)
- Win detection for 5+ in a row (horizontal, vertical, both diagonals), with the winning line highlighted in green
- Draw detection when the board fills up
AI Opponent
- Evaluates candidate cells near existing stones using pattern scoring (open threes/fours, blocked fours, etc.) to both attack and defend, with a short "thinking" delay for natural pacing
UX details
- Hover preview stone, last-move marker (red dot), turn indicator with move counter
- Undo button (smart-undoes a full round in AI mode so it's always your turn again)
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.