# Roll and Move: Stat & chart element for AI agents

> Signature device. A die tumbles in and lands on the roll; the pawn hops that many squares along the track; the square it lands on flips to the accent and the result is set down on a card below it, joined by a board line. Use it for "fast-forward N steps", odds, or any "what happens after N".

Canonical page: https://agentframes.ai/elements/tabletop/roll-and-move/
Markdown: https://agentframes.ai/elements/tabletop/roll-and-move.md

## Overview

- Name: Roll and Move (`rollAndMove`), an element: one HyperFrames block per size
- Part of: the [Tabletop](https://agentframes.ai/packs/tabletop.md) pack (31 of 50). Available only through the All-access subscription.
- Category: Stat & chart
- Purpose: Signature device. A die tumbles in and lands on the roll; the pawn hops that many squares along the track; the square it lands on flips to the accent and the result is set down on a card below it, joined by a board line. Use it for "fast-forward N steps", odds, or any "what happens after N".
- Pack: [Tabletop](https://agentframes.ai/packs/tabletop.md), included in All-access (from $14/month billed annually ($168/year), or $19 monthly)
- Subscribe: POST https://agentframes.ai/api/checkout/subscribe with interval=month or interval=year (optional currency=USD|GBP|EUR|AUD|CAD; 303 redirect to Stripe checkout; a human pays there). Then download any pack with the subscriber key: https://agentframes.ai/account.md
- Aspects: 16:9 (native), 9:16 (native), 4:5 (native), 1:1 (native)
- Canvases: works on Cream table (cream linen, white board) (`cream`), Kitchen table (pale oak, pastel pieces) (`kitchen`), Sky table (pale blue, white board, bright pieces) (`sky`); avoid none
- Typical duration: 8s
- Speaker-safe: no
- Preview video (watermarked): https://agentframes.ai/media/tabletop/roll-and-move.mp4
- Poster: https://agentframes.ai/media/tabletop/roll-and-move.jpg
- Licence: [AgentFrames Licence](https://agentframes.ai/licence.md)

## Paste this into Claude Code

```text
Use the AgentFrames Tabletop pack. Add a `rollAndMove` beat to plan.json on a `cream` canvas with slots `label`, `title`, `roll`, `squares`, `reveal` and `caption` from my script. Then run validate → build → qa and show me qa/contact.jpg.
```

## Variables

| Variable | Type | Label | Description | Default |
|---|---|---|---|---|
| `label` | string | label | {"type":"string","minLength":1,"maxLength":34} | Round 2 |
| `title` | string | title | {"type":"string","minLength":1,"maxLength":40} | Fast-forward 5 years |
| `roll` | number | roll | {"type":"integer","minimum":1,"maximum":6} | 5 |
| `squares` | string | squares | JSON string. {"type":"array","minItems":3,"maxItems":8,"items":{"type":"string","minLength":1,"maxLength":8}} | ["Start","Yr 1","Yr 2","Yr 3","Yr 4","Yr 5","Yr 6"] |
| `reveal` | string | reveal | {"type":"string","minLength":1,"maxLength":12} | £1,403 |
| `caption` | string | caption | {"type":"string","minLength":1,"maxLength":72} | £1,000 left alone for 5 years at 7% a year. |

## What your agent can change

**Roll and Move (signature device)**. Native 1920×1080, 8s at 30fps.

Signature device. A die tumbles in and lands on the roll; the pawn hops that many squares along the track; the square it lands on flips to the accent and the result is set down on a card below it, joined by a board line. Use it for "fast-forward N steps", odds, or any "what happens after N".

**Motion.** Track squares set down left to right; the pawn falls onto the start; the die tumbles in with two shrinking bounces, its faces flicker and it lands on the roll; the pawn hops once per pip (anticipation, arc, squash) and each square dips as it is passed; the landing square turns over; the line draws; the result card is set down.
**Why it moves.** character + change: the roll decides the move, so the viewer watches the number become distance and the distance become the result.

### Mount

Copy every manifest file into your project (plus `af-tabletop-runtime`). Mount with a unique host id, `data-composition-id="af-tabletop-roll-and-move-16x9"`,
`data-composition-src="compositions/af-tabletop-roll-and-move-16x9.html"`, `data-duration="8"` and `data-variable-values`.
Use the variant whose size matches your project (16x9, 9x16, 4x5, 1x1): each is laid out natively, never scaled.

### Content slots

Nested slots are JSON strings. Every slot is checked against `constraints.json` and measured against the layout before anything
draws; the block stops with a message naming the slot and the fix (it never truncates or shrinks text).

- `label`: {"type":"string","minLength":1,"maxLength":34}
- `title` (required): {"type":"string","minLength":1,"maxLength":40}
- `roll` (required): {"type":"integer","minimum":1,"maximum":6}
- `squares`: {"type":"array","minItems":3,"maxItems":8,"items":{"type":"string","minLength":1,"maxLength":8}}
- `reveal` (required): {"type":"string","minLength":1,"maxLength":12}
- `caption`: {"type":"string","minLength":1,"maxLength":72}

- `squares` labels the track (the first is the start); `roll` must be less than the number of squares.

Style: `colourway` (cream, kitchen, sky), `accent` (optional hex), `footer`, `round` (e.g. 3/5), `exit` (lift or cut).

### Timing

8s. Everything has landed by 4.8s (60%), then the scene holds for reading (the lamp light drifts slowly over the table;
text stays still) and every piece is lifted off the table over the last 0.5 s, leaving the empty table.

### Example

```json
{
  "label": "Round 2",
  "title": "Fast-forward 5 years",
  "roll": 5,
  "squares": "[\"Start\",\"Yr 1\",\"Yr 2\",\"Yr 3\",\"Yr 4\",\"Yr 5\",\"Yr 6\"]",
  "reveal": "£1,403",
  "caption": "£1,000 left alone for 5 years at 7% a year."
}
```

## FAQ

### What can my AI agent change in Roll and Move?

Your agent fills the `label`, `title`, `roll`, `squares`, `reveal` and `caption` slots through the block's data-variable-values (or the starter project's variables). Motion, timing, palette, fonts and the internal layout are protected, so the result keeps the Tabletop look.

### Which aspect ratios does Roll and Move support?

Roll and Move is designed natively for 16:9, 9:16, 4:5 and 1:1. A typical beat lasts 8s.

### How do I get Roll and Move?

Roll and Move is included in the Tabletop pack, which is part of the AgentFrames All-access subscription along with 49 other templates in this pack and every other pack on the store. You get the full source, the editing contracts and the agent instructions.

## More in Tabletop

- [Bar Chart: Chip Stacks](https://agentframes.ai/elements/tabletop/bar-chart.md): Two to six values as poker-chip stacks on one tray (a shared zero baseline). Each stack grows to its exact height while its number counts and rides its top; the highlighted stack is in the accent and the pawn drops onto it; an optional note marks illustrative data.
- [Funnel: Chips Poured Down](https://agentframes.ai/elements/tabletop/funnel-cup.md): How a number narrows stage by stage. Stage tiles narrow down the table; chips pour in, stage by stage, and each stage keeps a smaller stack with its value counting beside it.
- [Podium: 1-2-3](https://agentframes.ai/elements/tabletop/podium.md): A top three. A 1-2-3 podium is set down; three pawns drop beside it and hop up, third place first and the winner last, with a chip spray; each place's label rises under it.
- [Balance Scale: The Beam Tips](https://agentframes.ai/elements/tabletop/balance-scale.md): Compares two amounts by weight. Chip stacks grow on two pans of a balance while their values count, then the beam tips toward the heavier side with a damped swing.

## Community

Coming soon.
