# Thread Maze

> A black-figure tondo bearing a circular labyrinth a walker must enter and escape while a bull-headed pursuer wakes and hunts — rings doubling sectors as they widen.

- Type: Lab Skill (downloadable Agent Skill)
- Category: [Interactive 3D](https://www.sandbase.ai/skills/interactive-3d)
- Version: 1.0.1
- Runs online: yes
- Page: https://www.sandbase.ai/skills/interactive-3d/thread-maze

## What you get

Bring a labyrinth and the pursuer inside it. The Skill returns a downloadable Skill and a runnable tondo maze.

## Install

Download the Skill package from https://www.sandbase.ai/skills/interactive-3d/thread-maze (sign-in required), unzip it into your agent's skills folder, then ask your agent to use it:

```text
/thread-maze build a circular labyrinth game on <your tondo theme>
```

## How it works

1. **Build the bilingual labyrinth plate** Thread Maze builds with npm install && npm run build, with copy for each language in assets/briefs/*.json. The page is a black-figure tondo carrying a circular labyrinth, framed by a black title band, meander ornaments, side status text and three plate sizes: saucer, plate and charger. It runs offline with no runtime model calls; npm run demo serves it on localhost port 63124.
2. **Walk the maze and lay thread** build(R, seed) in src/maze.js doubles each ring's sectors as it widens and carves the maze with a seeded DFS plus about N/9 loop links. Arrows, WASD, swipe or the D-pad walk the walker; each new cell pushes onto a stack and lays thread, and backtracking pops it so the thread reels in. Reaching the centre wakes the bull-headed pursuer.
3. **Shoot the mechanism and check** npm run shoot runs 15 checks: the graph is connected, 181 walls sit on the plate, walks cross open edges only, push and pop lay and reel the thread, walls block, the auto-walker reaches the centre, the bull hunts by BFS gap, runs end won or caught, seeds are deterministic, the ribbon waves under slack and the page stays offline.

## FAQ

### What is Thread Maze?

Thread Maze is an interactive labyrinth game on a black-figure museum plate. You walk into a seeded circular maze laying a thread behind you, wake a bull-headed pursuer at the centre and retrace your way out before he catches you. New maze cuts a fresh labyrinth, and Walk for me hands the route to an autopilot.

### How does the thread work in Thread Maze?

Thread Maze treats the thread as the walker's stack. Every arrival on a new cell pushes it and samples that edge's path into the laid thread. Stepping back to the previous cell pops the stack and truncates the thread, so it literally reels in. Chaikin smoothing and a slack-scaled standing wave make it read as laid cord.

### How does the bull hunt in Thread Maze?

Thread Maze's pursuer sleeps until you reach the centre, then hunts by breadth-first search over open links toward your target cell, so its gap is true graph distance. A sniff pause at junctions is the only mercy, and a catch radius of 0.56 ends the run.

### Does Thread Maze need a key?

No. Thread Maze generates and renders every maze in the page with no runtime model calls and no network, and the shoot checks confirm it stays offline. The install step only adds the local build and check tooling.

### Why are some Thread Maze walls faint?

Thread Maze fades walls in by memory: each wall's alpha band comes from how much its cells have been seen, drawn in five glazes. Corridors you never walked stay faint, so the plate shows where you have been.

### Does Thread Maze work on a phone?

Yes. Thread Maze walks with a swipe or the on-screen D-pad on touch screens, as well as arrows and WASD on a keyboard. Tapping Walk for me lets the greedy BFS autopilot go in to the centre and back out along the shortest path.

## Examples

- Thread Maze tondo labyrinth (scene)
- The Tondo Maze (video)
