How to show multiple variations in a chess replay
A variation is an alternative line of moves from a position in the game. A single line rarely tells the whole story — the instructive part is usually why the alternatives fail. ChessMotion records a full branching move tree and plays every line in one replay.
Variations are a tree, not a list
In the editor, every position can have multiple continuations. The first move you record at a position becomes the main line; playing a different move from the same position later creates a variation branch. Nothing is overwritten — the tree keeps every line you record.
Qh7+
├── Kxh7 → Rh3+ → Kg8 → Rh8# (main line)
└── Kf8 → Qh8+ → Ke7 → Qxg7# (“If Kf8”)
Recording a variation
- Click any earlier move in the move list (or use the arrows) to go back to that position.
- Play a different move on the board. The editor branches the line at that point.
- The Variations panel shows the whole tree — click any move to load its line, label branches (“Best defense”), promote a branch to main line, or delete one.
How do variations play back?
Templates that argue a point — Puzzle, Mate Sequence, Brilliant Move — play all variations by default: the main line runs first, then the replay fades back to each branch point, shows the label (“If Kf8”), and plays the alternative. GIF and MP4 exports follow the same sequence, so the argument survives outside the interactive player.
Storytelling templates default to the main line only; you can switch any project between the two behaviors in the template panel.
A worked branch
Suppose the main line is 1.Qh7+ Kxh7 2.Rh3+ Kg8 3.Rh8#. Return to the position after Qh7+ and record 1...Kf8 as a second reply. That reply becomes a sibling branch, not a continuation of Kxh7. Label it “King declines the sacrifice”, play the refutation, then preview All variations: main line, rewind, label, alternative.
If a move appears under the wrong parent, return to the exact branch position before recording it. Most confusing variation trees come from branching one ply too early or too late.
What makes a good variation set?
- Refute the natural moves, not every legal move. Two or three branches that answer “but what if…?” beat ten exhaustive lines.
- Label the branches. “Declining the sacrifice” reads better in playback than a bare move.
- Keep branches short. End each one at the moment the evaluation is obvious.
Two examples that live on their variations: the smothered mate (the defensive try loses differently) and Légal’s mate (the decline loses a pawn instead).
A second worked tree: Légal’s trap
The main line is 1.e4 e5 2.Bc4 d6 3.Nf3 Bg4 4.Nc3 g6 5.Nxe5! Bxd1 6.Bxf7+ Ke7 7.Nd5#. White appears to drop the queen on move five. Black takes it, and three minor pieces mate the king on e7. After 6.Bxf7+ the king has exactly one legal move, which is why the line is worth showing in full.
The branch belongs at move five. Return to the position after 5.Nxe5 and record 5...dxe5 as a second reply. White answers 6.Qxg4 and has simply won a pawn. Label the branch “Black declines the queen”. The two lines together make the lesson: greed loses the game, caution only loses a pawn.
How many branches fit in one replay?
Every branch adds a rewind, a label and its own moves to the playback. In an interactive replay that costs nothing, because viewers choose which line to open. In a GIF or MP4 the branches play one after another, so length adds up quickly. As a guide, a vertical short holds one branch comfortably, a teaching clip two or three, and anything more belongs in the interactive replay.
- Deleting a branch removes every move recorded after it on that branch. Promote a branch to the main line instead if you only want to change the order.
- Branches can have branches. A defence inside a variation can get its own reply; keep that to one level in exports so the playback stays readable.
- Transpositions are separate lines. Two move orders that reach the same position are stored as two branches. Keep the more natural order and delete the other.
Labels that read well in playback
A label is shown at the branch point before the alternative plays. Write it as the question a viewer would ask: “If Black takes the queen”, “If the king runs to f8”, “The natural move fails”. Keep it to a few words, because it is read during a short pause. Leave the verdict for the end of the branch, where the position shows it.
Avoid labels that only repeat the move, such as “5...dxe5”. The notation is already on the board and in the move list. The label is the one place to say why the line is there.
Try it yourself. No account required.
Read next: Mate sequence animations, Puzzle template, Explore mate sequences and Mate Sequence template.