← All widgetsTier 1Games & Random

Snake

Classic playable snake.

The classic Snake game, fully playable with keyboard controls.

type Β· snake_game
Runs entirely in the shell β€” no backend needed.

How to use it

Just ask for it in chat β€” the agent emits this widget and the shell renders it:

Try saying
β€œlet me play snake”

Example

The agent returns this A2UI component (inside the components array of a /chat response):

snake_game.json
{
  "type": "snake_game",
  "gridSize": 20,
  "speed": 5
}

Properties

PropTypeDescription
gridSizenumberBoard size
speednumber1 (slow) – 10 (fast)

Browse the full Widget Index, the Widget Catalog, or learn the A2UI system behind it.