Hanzo AI

Build a game

The shortest path from nothing to something you can play — in the browser, from your terminal, or against the raw API.

Build a game

A game is the fastest honest test of a platform. It has to render, it has to keep state, it has to respond in a loop, and you know within a second whether it works — no staging environment, no "looks right to me". So we use one to introduce the three ways to build on Hanzo.

Same game, three paths. Pick by how much you want to type.

No install, no key, nothing to configure. Open hanzo.app, sign in, and describe the game:

Build a single-page snake game. Arrow keys to move, the snake grows when it
eats, and the score is kept in the corner. Game over on hitting a wall or
yourself, with a restart button. Use a canvas, no dependencies.

You get a running preview beside the chat. Keep going in plain English — make the snake faster as the score climbs, add a high score that survives a refresh, make it playable on a phone — and the preview updates as it goes.

When it plays the way you want, publish it. It gets a URL on hanzo.app you can send to someone.

This is the same model and the same tools as the other two paths. The only difference is that the app writes the code and hosts the result for you.

Make it multiplayer

The single-player version is local state in one browser tab. Two players need somewhere shared to put the state, and something to tell each tab when it changed — which is the point at which a toy starts using the platform properly:

Then take it further

How is this guide?