What happens when a position repeats: who loses and who draws.
Perpetual check
Red's chariot checks and Black's general has only one square each time. Watch the same four moves come round again.
Movesf5e5 e9f9 e5f5 f9e9 f5e5 e9f9 e5f5 f9e9
f5e5 Check on the e-file. The d-file is closed by the flying general rule.
e9f9 The only legal answer.
e5f5 Check on the f-file.
f9e9 The only legal answer. The starting position has now occurred twice.
f5e5 Check again.
e9f9 Forced.
e5f5 Check again.
f9e9 The starting position has now occurred three times. Red gave check with every move and Black did not, so Red, the side giving perpetual check, loses.
Perpetual chase
Black's horse on a5 is attacked by the chariot on a1 and nothing protects it. Each time it runs, the chariot attacks it again.
Movesa5c4 a1c1 c4a5 c1a1 a5c4 a1c1 c4a5 c1a1
a5c4 The horse escapes to c4.
a1c1 The chariot attacks it again on the c-file.
c4a5 The horse jumps back.
c1a1 The chariot attacks it again. The position has now occurred twice.
a5c4 The horse escapes again.
a1c1 Another chase.
c4a5 The horse jumps back once more.
c1a1 Third occurrence. Red chased the same unprotected piece with every move and Black only ran, so the chasing side, Red, loses.
In xiangqi you cannot force a win or save a loss just by repeating moves. Rulings vary between federations, so this lesson describes the simplified rules used on this site, which follow the Asian and WXF approach. When the same position occurs for the third time, we look at what each player has been doing in that cycle.
Perpetual check
If one player gave check with every move of the cycle and the other did not, the player who kept checking loses. Checking forever is not allowed: you must change your plan.
Perpetual chase
A chase is a repeated attack on one enemy piece that is not protected. A chariot attacked by a horse or a cannon counts as chased even when protected. If one side chased with every move and the other side did not check or chase, the chasing side loses.
What is not a chase
An attack by the general, or by a soldier that has not crossed the river.
An attack on a soldier that has not crossed the river.
An attack on a piece that is protected (except the chariot case above).
A mutual attack between equal pieces, which is only a trade offer.
Everything else
If both sides check or chase, or neither does, the repetition is a draw. When the rules are unclear, the site rules a draw rather than a loss. The cycle restarts after any capture or forward soldier move.