ZCode Enterprise

A private build of ZCode. Enter your download key to get the latest build.

ZCode Enterprise

Create an intelligent Gomoku (Five-in-a-Row) game where the player competes against a smart algorithm that can make strategic moves and accurately detect winning conditions.

Worked for 3m 1s

I'm going to inspect the current Gomoku project structure first, then identify what already exists for board state, rendering, and game flow before wiring in AI and win detection.

Explored 1 search, 1 file Failed

The repository looks either empty or nearly empty. I'm confirming whether there's an existing app to extend or whether I should build the game from scratch.

Ran git status --short Failed

There isn't an existing app here, so I'm building a self-contained implementation from scratch — a browser-based Gomoku with a heuristic AI, turn handling, and explicit five-in-a-row detection.

Wrote index.html, app.js, styles.css +733

The full UI and core logic are in place. I'm verifying the JavaScript parses cleanly and reviewing the move-scoring logic for edge cases.

Ran node --check app.js

I found one avoidable dependency: the page was pulling a web font. Removing that so the game stays fully local with no network requirement.

Updated styles.css, index.html +1 -7

Built a standalone browser Gomoku game in index.html, styles.css, and app.js. It renders a 15×15 board, detects wins in all four directions, highlights the winning line, and supports restarting the match.

The AI is heuristic: it scores offensive patterns and defensive blocks, adds center preference, and picks the strongest move. Verification: node --check app.js passed.

3 files changed +734 -7
Undo
app.js +471 -0
index.html +62 -6
styles.css +201 -1
Ask for follow-up changes