Xiangqi
English

Xiangqi Rules: How to Play Chinese Chess, Step by Step

Xiangqi, also called Chinese chess, is a game for two players. Red and Black each have sixteen pieces, Red moves first, and the players take turns making one move at a time. Whoever first checkmates the opponent's general wins. There aren't many rules, and below we go through them one at a time, each with a board diagram. Every legal point shown in the diagrams is calculated by this site's rules engine.

The goal: checkmate

Xiangqi isn't about capturing the most pieces. If your opponent's general is in check and no move can get it out, that is checkmate and you win. And if it's your opponent's turn and they have no legal move at all (called stalemate), you also win — unlike in Western chess, where stalemate is a draw. See win, loss and draw for details.

The board: play on the intersections

The board has nine vertical lines and ten horizontal lines, and the pieces stand on the intersections, not inside the squares. The empty band across the middle with no vertical lines is the river, often labelled "Chu River, Han Border" (楚河漢界). At each end there is a 3×3 box with diagonal lines, the palace; the general and the advisors must stay inside it.

楚 河漢 界將帥
The shaded areas are the two palaces. The band in the middle with no vertical lines is the river.

Every part of the board has a name (the soldier line, the riverbank line, the palace flanks…); see the xiangqi board if you're curious.

Setting up

Each side has sixteen pieces of seven kinds: one general, two advisors, two elephants, two horses, two chariots, two cannons and five soldiers. Their starting positions are fixed:

楚 河漢 界車馬象士將士象馬車砲砲卒卒卒卒卒兵兵兵兵兵炮炮俥傌相仕帥仕相傌俥
The starting position. Red is at the bottom and moves first; the two sides are set up as mirror images.

Several red pieces use different Chinese characters from the black ones (帥/將, 仕/士, 相/象, 傌/馬, 俥/車, 炮/砲, 兵/卒), but they move in exactly the same way. Boards on this site always show these characters; one table explains them all: Xiangqi pieces.

How the seven pieces move

One line per piece — follow the link for diagrams and common mistakes:

PieceHow it movesWatch out for
ChariotAny distance in a straight lineCan't jump over pieces
HorseOne point straight, then one diagonallyCan't go that way if the first point is occupied (hobbling the horse)
CannonMoves like a chariotTo capture, there must be exactly one piece in between (the screen)
SoldierOne point forwardSideways only after crossing the river; never backwards
ElephantExactly two points diagonallyCan't cross the river; blocked if the middle point is occupied
AdvisorOne point diagonallyMust stay in the palace
GeneralOne point up, down, left or rightMust stay in the palace; may not face the enemy general

A good learning order: chariot → horse → cannon → soldier → elephant → advisor → general.

Moving and capturing

  • Players take turns, moving one piece one move at a time. You can't pass.
  • Moving onto a point occupied by an enemy piece captures it, and it is removed from the board.
  • You can't capture your own pieces or share a point with one.
  • Apart from the cannon's capture over a screen, no piece can jump over other pieces (that's also why horses get hobbled and elephants get their eyes blocked).

Check and answering check

If, after your move, you could capture the opponent's general on your next move, that is check. A side in check must get out of it immediately, in one of three ways:

  1. Move the general to a safe point
  2. Capture the checking piece
  3. Put a piece in between (against a horse or a cannon you can also block the horse's leg or change the cannon's screen)
楚 河漢 界將馬俥帥
The red chariot checks along the file. Black can move the general sideways, or jump the horse onto the e-file to block.

You may not make a move that leaves your own general open to capture — on this site such moves simply can't be played, and those points never light up when you select a piece.

The generals may not face each other

If the two generals stand on the same file with no pieces at all between them, they "face each other", which is not allowed. This is often called the flying-general rule. So a piece standing between the two generals is sometimes not allowed to leave:

楚 河漢 界將傌帥
The red horse stands between the two generals. If it moved away, the generals would face each other, so this horse can't move at all.

The rule also works as a weapon: your general controls its whole file, so the enemy general can't step onto it. The "Facing Generals" mate is built on this — see common checkmates.

How games are won and drawn

SituationResult
Checkmate: in check with no way outThe side that is checkmated loses
Stalemate: not in check, but no legal moveThe side with no move loses
Perpetual check: checking again and again while the position repeatsThe side giving the checks loses
Repetition: the same position keeps coming back (not perpetual check)Draw
Move limit: no capture for a long timeDraw
Insufficient material: neither side has a piece that can cross the river and attackDraw

The details of each rule, and exactly how this site applies them, are in win, loss and draw.

Reading game records

Every xiangqi move can be written in four parts. In Chinese, "炮二平五" means which piece, which file it starts on, how it moves (forward / back / sideways), and where it ends up or how far it goes. Each side counts files from its own right-hand side. In English, the same move is written in WXF notation as C2=5, and that is what the game's move list shows on this site. The full explanation is in how to read xiangqi notation.

Three tips for beginners

  1. Get your chariots, horses and cannons out early instead of leaving them at home. A Chinese saying goes: "if your chariot isn't out in three moves, you've already half lost".
  2. Don't rush to move your general — it is safest in the middle of the palace.
  3. Before every move, ask what your opponent's last move was trying to do. Are they threatening a piece? Setting up a check?

Frequently asked questions

Who moves first in xiangqi?

Red moves first. When you play the computer on this site, you can choose Red or Black; if you choose Black, the computer moves first.

I wasn't checkmated — why did I lose?

It may have been stalemate (it was your turn and you had no legal move, which loses), or perpetual check (you kept giving check while the position repeated, and the checking side loses).

Can I take back a move?

Not in a real tournament — "a move once made can't be taken back". When you play the computer on this site, you can press Undo; use it as much as you like while practising.

How is xiangqi different from Western chess?

Pieces stand on the intersections, there is a river in the middle, the generals are confined to their palaces, the cannon captures over a screen, soldiers never promote, and stalemate is a loss rather than a draw. The games feel very different — think of them as two separate games.

Is xiangqi the same as Korean janggi or Japanese shogi?

No. The three games share a common ancestor, but their pieces, boards and rules differ; janggi, for example, has no river and its elephant moves differently. To find out where xiangqi came from, read the history of xiangqi.

Play your first game

That's all the rules. The fastest way to learn is to play: play xiangqi online, choose "Play the computer" and start at the Beginner level. Tap one of your pieces and the points it can reach light up — illegal moves simply can't be made. When you're done, head back to the xiangqi home page to see what else you can do.

Ready to try it on the board?