Everything about the xiangqi general (帥/將): how it moves inside the palace, the flying-general rule, and defensive ideas that keep your king safe and healthy.
The xiangqi general is the single most important piece in the game, because when it is checkmated the game ends instantly. Red calls it 帥 and Black calls it 將; in Cờ Tướng it is the tướng. It never leaves its home, sitting inside a marked 3x3 zone called the palace, guarded by two advisors and shielded, at least early on, by elephants and soldiers.
Because the general is confined and can move only slowly, king safety in xiangqi is less about running away and more about building a solid fortress. This guide explains exactly how the general moves, the famous flying-general rule that makes it a hidden attacker, and the practical defensive habits that keep good players from getting mated.
How the General Moves
The general moves one point at a time, strictly horizontally or vertically, never diagonally. Crucially, it may never leave the palace, the 3x3 grid of nine points marked by a large X at each end of the board. That gives the general at most four squares of movement and often fewer when its own advisors occupy palace points.
The general captures the same way it moves, stepping one point onto an adjacent enemy piece within the palace. In practice the general rarely captures anything, because venturing toward the front of the palace usually exposes it to danger. Its job is to survive, not to fight.
Think of the general as the anchor of your position. It cannot chase enemy pieces or defend distant squares, so the pieces around it must do the heavy lifting. A general standing alone in an empty palace is one of the most vulnerable sights in the game.
The Flying-General Rule
One rule turns the passive general into a surprising weapon: the two generals may never face each other along the same file with no pieces in between. If that ever happens, the general who created the situation would be capturing the enemy general in a single flying move, which is illegal to allow. This is often called the flying-general or facing-generals rule.
In practice this means you cannot make a move that leaves the files between the two generals completely empty. The rule frequently decides endgames. A player can use their own general as an attacking piece by threatening to open the file between the kings, restricting where the enemy general and its defenders may go.
Learning to see this hidden line of force is a mark of a maturing player. Many elegant checkmates work only because the defending general cannot step to a square that would leave it exposed to its counterpart across an open file. Always keep one eye on the file your general shares with the enemy king.
Building a Safe Palace
A healthy defense usually keeps both advisors and at least one elephant near the palace. Advisors, which move one point diagonally within the palace, cover the diagonal approach squares that the general itself cannot. Elephants, moving two points diagonally and unable to cross the river, guard the wider approaches on your own side.
The classic weakness to watch for is the loss of both advisors. Without advisors, the general is dangerously exposed to enemy chariots and cannons, and many standard mating patterns become possible. Protecting your advisors, or at least trading them only on your terms, is a central defensive skill.
Be careful about opening files in front of your own general. A cannon needs a screen to capture, so an empty file pointing at your king is exactly what an attacker wants. Keeping a soldier or advisor on that file, or a defender ready to interpose, denies the opponent the clean lines they need.
Common Defensive Mistakes
The most frequent error among beginners is neglecting the palace while attacking. It is tempting to throw every piece at the enemy king, but if you strip your own defense bare, a single enemy chariot can swing back and mate you first. Keep a defensive reserve unless you have calculated a forced win.
Another common slip is moving the general to the front point of the palace too early, where it becomes a target and can be pinned or checked by cannons firing over a screen. Unless there is a concrete reason, the general is safest tucked toward the back of the palace.
Finally, watch for cannon-based mates that use your own pieces as screens. Because a cannon jumps exactly one piece to capture, your own advisor or soldier can accidentally become the screen an enemy cannon needs. Before you place a defender, make sure it is not doing the attacker's job for them.
Next Steps
King safety is a habit, and habits form through play. Jump into a game on XiangqiPlay and, before each attacking move, take one second to check the health of your own palace: advisors present, elephants ready, and no open file pointing at your general.
Then work through our checkmate puzzles to learn the patterns attackers use, because knowing how mates happen is the fastest way to prevent them. Master the general, and you will lose far fewer games to sudden, avoidable defeats.