Can the two generals face each other in xiangqi?

These answers restate the rules implemented by our open-source engine, which follows the WXF laws and is regression-tested against the official 110-diagram repetition casebook. Where an answer refers to a specific position, that position lives on the linked reference page, where the build verifies it against the engine before publishing.

Direct answer

No. The two generals may never stand on the same file with an empty line between them — this is the flying general rule (白臉將). Any move that would create the position is illegal, including moving the last piece out from between them.

Why it is a rule and not a capture

Some descriptions say a general may "fly" down the file and capture the other. In the WXF laws the position simply cannot arise: the rule is a restriction on moving, not a capturing move. Practically it comes to the same thing, because nobody may create it.

The pin it creates

This is the strongest pin in the game. A piece standing alone between the two generals is completely frozen — every one of its moves is illegal, whatever the board looks like. It cannot capture, it cannot block, it cannot run.

To break out: move your own general off the file, or put a second piece on the line so neither one is the only thing keeping the generals apart.

Related questions

Can I move a piece from between the generals?

Only if another piece remains on the line, or your general leaves it. Otherwise the move is illegal.

Does this count as check?

Exposing your own general this way is treated as leaving yourself in check, so the move is refused outright.

Try it on a real board

Reading an answer is one thing; playing it is another. Free, instant, and nothing to install.