What is the flying general rule?

Every position, move and legality claim on this page is verified programmatically against our open rules engine, which implements the WXF laws and is tested against the official 110-diagram repetition casebook.

Direct answer

The two generals may never stand on the same file with no piece between them — 白脸将, the “flying general”. Any move creating that position is illegal, so a piece standing between the generals may be unable to move at all. It is also a weapon: the far general effectively guards its own file, which is what makes many mates work.

The rule, demonstrated

Below, the two generals stand on the e-file with a single red chariot on e1 between them. That chariot is absolutely pinned — not by an attacker, but by the rule itself. Every move that takes it off the e-file would leave the generals facing, and the board will refuse all of them.

Try it: click the chariot and try to move it sideways.

楚 河 漢 界

Try to move the chariot off the e-file. Every such move is illegal.

The chariot on e1 cannot leave the file: doing so would leave the generals facing each other.

Xiangqi position. Red: chariot e1, general e0. Black: general e9. Red to move.

Using it to win

Beginners meet this rule as a restriction. Strong players use it as an attacking piece that costs nothing:

  • The general defends its own file. An enemy piece cannot safely occupy the file between the generals if capturing it would be the only way to stop the facing — in effect your general is guarding points at the far end of the board.
  • It creates absolute pins. A defender stuck between the generals cannot block, cannot capture, cannot interpose. Attacks that would fail against a mobile defender succeed against a frozen one.
  • It supplies mates. A large family of standard mating patterns works only because the defending general is forbidden the one square that would save it.

It is worth playing through a few tactical patterns with this in mind — a surprising share of them rest on this single rule.

Common mistakes

Moving a piece out from between the generals

Illegal, and the most common rule error new players make. Before moving anything, look down your general's file to see what is at the other end.

Thinking it only matters in the endgame

It applies from move one. Central files open early in xiangqi, and the rule constrains middlegame play constantly.

Assuming the general is safe because it is far away

Distance is irrelevant. The generals can be nine ranks apart; if the file between them is empty, the position is illegal.

Related questions

What happens if the generals end up facing each other?

The position cannot arise: any move that would create it is illegal and simply cannot be played. In a casual game where it happens by mistake, the move is taken back.

Why is it called the flying general?

From 白脸将 — the idea that the general can “fly” the length of the open file to capture its counterpart. Rather than allowing the capture, the rules forbid the position that would permit it.

Does the rule apply on ranks too?

No, only on files. The generals may share a rank quite legally, and in the palace they frequently do.

Try it on a real board

Play a full game against the computer or a real opponent. Free, no download, and every rule on this page enforced by the engine that verified it.