HomeTech NewsTSN Arcade: How an AI Assistant Built a Browser Games Site

TSN Arcade: How an AI Assistant Built a Browser Games Site

TSN Arcade is a free collection of browser games that TSN built in April 2026 by asking an AI coding assistant for what it wanted in plain English. The assistant, running on the open-source OpenClaw agent framework, wrote the games, created the GitHub repository and published the site on GitHub Pages; the first version, with 11 games, went live in a single afternoon.

This guide explains how the build worked, which steps still needed a person, and what anyone copying the approach should check before sharing their own games. The workflow matters beyond games: the same pattern of describe, test, refine and publish is how many people now use AI agents for small software projects.

Updated 30 November 2026: this April 2026 post has been rewritten in TSN’s house style. The arcade now lists 12 games, after TSN Drive was added; we removed broken links, cleaned up the code examples, added GitHub’s documentation as sources and added a section on the checks AI-built projects still need.

What is in TSN Arcade

The arcade’s menu page lists 12 games, all written in HTML5 and JavaScript so that they run in any modern browser without installing anything. The source code is public on GitHub, in a repository created on 14 April 2026.

High scores are kept in the browser’s local storage, so they survive a restart without any server or account.

How an AI assistant built TSN Arcade, step by step

1. Give the assistant access to GitHub

The only manual set-up was installing GitHub’s command-line tool, gh, and signing in with gh auth login, which opens a browser window to authorise the account. After that, the assistant could create repositories, commit code and change settings through the same tool.

# Install the GitHub CLI
brew install gh        # macOS
sudo apt install gh    # Debian or Ubuntu Linux

# Sign in
gh auth login

2. Start with something small

The first request was for a private test repository with a “hello world” script. The assistant created the repository, wrote the script, committed it and pushed it. A second request, for games to play from GitHub, produced a private repository of five terminal games in Python: number guessing, a short text adventure, tic-tac-toe against the computer, a Wordle-style word game and Snake.

3. Move to the browser and publish

Terminal games are hard to share, so the next step was to collect browser versions of classic games the assistant had written earlier, add a menu page and push them to a new public repository, tsn-arcade. The assistant then switched on GitHub Pages through GitHub’s REST API for Pages, publishing the main branch as a website:

gh api repos/techsocialnetwork/tsn-arcade/pages -X POST \
  --input - <<< '{"source":{"branch":"main","path":"/"}}'

The result was a public site at techsocialnetwork.github.io/tsn-arcade, served over HTTPS at no cost.

4. Make the TSN Arcade games work on phones

The first version was built for keyboards and was close to unplayable on a phone. A request to make the arcade “mobile friendly” and add control pads led to a responsive menu grid (two columns on phones), lighter visual effects on mobile, an on-screen direction pad and swipe detection. Swipes use the browser’s standard touch events: the game records where a finger lands and where it lifts, then moves in whichever direction changed most.

let touchStartX = 0, touchStartY = 0;

canvas.addEventListener('touchstart', (e) => {
  touchStartX = e.touches[0].clientX;
  touchStartY = e.touches[0].clientY;
});

canvas.addEventListener('touchend', (e) => {
  const dx = e.changedTouches[0].clientX - touchStartX;
  const dy = e.changedTouches[0].clientY - touchStartY;
  if (Math.abs(dx) > Math.abs(dy)) { dx > 0 ? goRight() : goLeft(); }
  else { dy > 0 ? goDown() : goUp(); }
});

A five-step workflow to build your own browser games

  1. Connect: give your assistant access to GitHub, ideally through a separate account or a token limited to the repositories it needs.
  2. Start small: ask for one simple game in a private repository and run it yourself.
  3. Iterate: describe changes in plain English (“add a game-over screen with the final score”, “make the computer opponent harder”).
  4. Publish: when it works, ask for a public repository, a menu page and GitHub Pages.
  5. Test on a phone: then ask for touch controls and a responsive layout, and test again.

Other tools now offer the same route with less set-up. Google, for example, lets people run AI Studio apps privately through Google Play without a developer account.

Where AI-built hobby projects still need a human check

The speed is real, but an afternoon build skips steps a developer would normally take, and the assistant will not always flag them. The first is security. An agent that can push code to GitHub holds working credentials, and attackers target exactly those: TSN has reported a hijacked npm package that stole AI agents’ keys. Limiting what the agent’s token can reach, and keeping secrets out of public repositories, matters more than any game feature.

The second is intellectual property. Game mechanics are widely copied, but names, artwork and specific designs can be protected. Anthropic now steers Claude Code away from recreating specific existing games because using it to infringe IP breaks its usage policy; anyone publishing their own arcade is safer with original names and designs. The third is hosting rules: GitHub says Pages is not meant to run an online business or commercial software, and sites have a 1GB size limit and a soft bandwidth limit of 100GB a month.

None of this is a reason not to build. Small, public, hobby projects are a low-risk way to learn what agents such as OpenClaw can do, and the tools keep changing: OpenClaw’s 2026.4.5 release closed several security gaps days before TSN Arcade was built. The useful habit is to read what the assistant produced before sharing the link.

Sources

Related stories

OpenClaw 2026.4.5: The Upgrade That Adds Video Generation and Closes Security Gaps covers the agent framework used for this build, so it is the natural next read.

Follow @tsnmediahub on X for breaking AI news as it happens.

Follow on X

Share this story

Latest stories

More in this category

Latest stories

Explore the TSN Atlas: Every topic we cover, mapped. Click a bubble to dive in.