cd /news/artificial-intelligence/zcode · home topics artificial-intelligence article
[ARTICLE · art-31246] src=zcode.z.ai ↗ pub= topic=artificial-intelligence verified=true sentiment=· neutral

ZCode

A developer built a standalone browser-based Gomoku game from scratch after finding an empty repository. The 15x15 board game features a heuristic AI opponent, win detection in all directions, and a local-only design with no network dependencies.

read2 min views1 publishedJun 17, 2026

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

pwd

The repository looks either empty or nearly empty. I’m checking the actual directory contents now and confirming whether there’s an existing app to extend or whether I should build the game from scratch.

git status --short

Failed

git status --short
2026-04-19 17:10:16.280 xcodebuild[60663:50240053] DVTFilePathFSEvents: Failed to start fs event stream.
git: warning: confstr() failed with code 5: couldn't get path of DARWIN_USER_TEMP_DIR; using /tmp instead
fatal: not a git repository (or any of the parent directories): .git

There isn’t an existing app here, so I’m building a self-contained implementation from scratch. I’m checking whether there are any local project conventions to respect, then I’ll add a browser-based Gomoku with a heuristic AI, turn handling, and explicit five-in-a-row detection.

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 like first-move response, draw handling, and long-line wins.

node --check app.js

node --check app.js

No output.

I found one avoidable dependency: the page was pulling a web font. I’m removing that so the game stays fully local and works by opening index.html

with no network requirement.

Built a standalone browser Gomoku game in , , and . It renders a 15x15 board, lets the player place black stones, detects wins in all four directions, highlights the winning line, tracks turns and move count, and supports restarting the match.

The AI is heuristic rather than random. It searches nearby candidate moves, scores offensive patterns for itself, scores defensive blocks against the player, adds center preference, and chooses the strongest move. There's also an optional “AI focus area” overlay so you can see the strongest candidate points it considered.

Verification: node --check app.js

passed. I did not run an interactive browser session here, so the remaining step is to open in a browser and play.

── more in #artificial-intelligence 4 stories · sorted by recency
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/zcode] indexed:0 read:2min 2026-06-17 ·