← Back to PlayVsAI中文

Game rules › Board Games › Xiangqi (Chinese Chess)

Xiangqi Rules

Overview

Xiangqi (Chinese Chess) is a two-player board game. Red and Black each have 16 pieces and take turns moving on a 9 × 10 board. Each kind of piece has its own way of moving and captures the opponent's pieces according to that movement; the goal is to checkmate the opponent's General.

The Board and Pieces

The board is made of 9 vertical lines (files) and 10 horizontal lines (ranks). Pieces are placed on the intersections of the lines, 90 points in all.

Starting position (Black at the top, Red at the bottom):

車 馬 象 士 將 士 象 馬 車
・ ・ ・ ・ ・ ・ ・ ・ ・
・ 砲 ・ ・ ・ ・ ・ 砲 ・
卒 ・ 卒 ・ 卒 ・ 卒 ・ 卒
・ ・ ・ ・ ・ ・ ・ ・ ・
──── 楚河    漢界 ────
・ ・ ・ ・ ・ ・ ・ ・ ・
兵 ・ 兵 ・ 兵 ・ 兵 ・ 兵
・ 炮 ・ ・ ・ ・ ・ 炮 ・
・ ・ ・ ・ ・ ・ ・ ・ ・
俥 傌 相 仕 帥 仕 相 傌 俥

Each side has 16 pieces. Red and Black pieces are written with different characters but move the same way:

Piece Red Black Per side Where it can go
General 帥 將 1 Only inside its own palace
Advisor 仕 士 2 Only inside its own palace
Elephant 相 象 2 Only on its own half; cannot cross the river
Chariot 俥 車 2 Whole board
Horse 傌 馬 2 Whole board
Cannon 炮 砲 2 Whole board
Soldier 兵 卒 5 Only forward and (after crossing the river) sideways; never backward

How to Play

Capturing

In xiangqi, the capture rules are part of each piece's movement. Except for the Cannon, every piece "captures the same way it moves".

General (帥/將)

Moves one point at a time, only vertically or horizontally (not diagonally), and cannot leave its own palace. It must also obey the rule that "Generals may not face each other".

Advisor (仕/士)

Moves one point diagonally at a time and cannot leave its own palace. So an Advisor has only five points it can stand on in the palace: the four corners and the center.

Elephant (相/象)

Moves exactly two points diagonally at a time, commonly described as moving "corner to corner of a 田-shaped square". Two restrictions:

Chariot (俥/車)

Moves any number of points along a file or rank, but cannot jump over any piece along the way. It can capture the first opponent's piece it reaches.

Horse (傌/馬)

Moves one point vertically or horizontally, then one point diagonally outward, commonly described as moving "corner to corner of a 日-shaped rectangle". One restriction:

・ A ・ B ・        To jump to A or B, the horse (馬)
・ ・ 子 ・ ・        must first pass the point directly above it;
・ ・ 馬 ・ ・        that point holds a piece (子), so neither A nor B can be reached.

Cannon (炮/砲)

Soldier (兵/卒)

Winning, Losing and Draws

After every move, the following conditions are checked in order; the first one that applies decides the result:

Order Situation Result
1 The side to move has no legal move and is in check (checkmate) The side to move loses
2 The side to move has no legal move but is not in check (stalemate, 困斃) The side to move loses
3 The same position occurs for the third time, and one side gave check with every move in the cycle (perpetual check) The side giving perpetual check loses
4 The same position occurs for the third time, and both sides gave check with every move Draw
5 The same position occurs for the third time, and one side chased a piece with every move in the cycle (perpetual chase) while the other did not The side giving perpetual chase loses
6 The same position occurs for the third time, and none of the above applies Draw
7 60 moves in a row (60 by each side, 120 in total) without any capture by either side (60-move rule) Draw
8 Neither side has any attacking pieces (insufficient material) Draw

There is no overall move limit: the 60-move rule and the limited material mean every game eventually ends.

A game can also end because of a player: resigning (the side that resigns loses).

Notes:

Forbidden Moves

Xiangqi does not allow a player to drag a game out by "repeating the same moves over and over". It is handled as follows: when the same position occurs for the third time, the most recent cycle (all moves between the previous occurrence of this position and this one) is examined and ruled on according to the rules below. Unlike Banqi (Dark Chess), forbidden moves in xiangqi are ruled on after the fact: such moves are not blocked in advance, but when the position occurs for the third time the result is decided directly.

Perpetual Check

If every move one side makes in the cycle is a check, that is perpetual check.

Perpetual Chase

What "chase" means: after a move, one of your pieces can legally capture a particular opponent's piece, and this capture threat is newly created by this move (it did not exist before the move). If in the cycle every move one side makes newly chases the same opponent's piece, that is perpetual chase.

What counts as a "chase" and what does not:

Situation Counts as a chase?
Threatening an opponent's piece with your General or a Soldier No (the General and Soldiers may chase perpetually)
Threatening the opponent's General No (that is check, handled as perpetual check)
Threatening an opponent's Soldier that has not crossed the river No
Threatening an opponent's Soldier that has crossed the river Decided by the rows below
A Horse or Cannon threatening an opponent's Chariot Yes, whether or not the Chariot is protected
An Advisor or Elephant threatening an opponent's Chariot, Horse or Cannon Only if the piece is unprotected; not if it is protected
Other cases, where the opponent's piece is protected (after you capture it, the opponent can legally recapture) No
Other cases, pieces of the same type: any opponent piece of that type (not necessarily the one being chased) can attack your piece by its movement (for example, two Chariots on the same line) No (that is an exchange; only movement is checked — even if the opponent's piece is pinned and could not actually capture)
Other cases, pieces of the same type, but no opponent piece of that type can attack yours by its movement (for example, Horse vs Horse with the opponent's horse leg hobbled), and the threatened piece is unprotected Yes (not if it is protected)
Other cases, where the opponent's piece is unprotected Yes

Note: the capture threat only counts if the capture would be legal. If making that capture would leave your own General open to capture or put the Generals face to face, it is not a legal capture and does not count as a chase.

Examples

Perpetual check loses: A Black Chariot keeps checking the Red General from one side and then the other, and the Red General can only shuttle between two points.

Move Red Black
1 General retreats to the back rank (escaping check) Chariot follows onto the same rank (check)
2 General returns to its original point (escaping check) Chariot follows back to its original point (check)
3 General retreats to the back rank (escaping check) Chariot follows onto the same rank (check)
4 General returns to its original point (escaping check) Chariot follows back to its original point (check), and the same position occurs for the third time

In the cycle, every Black move is a check and Red gives no check: Black is giving perpetual check, so Black loses.

Perpetual chase loses: A Red Chariot keeps chasing an unprotected Black Horse. The Black Horse jumps back and forth between two points, and the Red Chariot follows back and forth between two points to keep chasing it. When the same position occurs for the third time, every Red move in the cycle newly chases the same Black Horse, while Black neither chases nor checks: Red is giving perpetual chase, so Red loses.

Simple repetition is a draw: Both sides shuffle pieces back and forth with idle moves, with no checks and no chases; when the same position occurs for the third time, the game is drawn.

To avoid losing this way: before the same position occurs for the third time, choose a different move.

Reading the Move Notation

Each move is written with four parts: piece + starting file + direction + destination. Chinese notation writes moves such as 炮二平五 or 馬8進7; the English (WXF-style) notation is described here.

Examples:

English Chinese Meaning
C2=5 炮二平五 Red Cannon moves sideways from file 2 to file 5 (the central cannon opening)
H8+7 馬8進7 Black Horse jumps forward from file 8 to file 7
S3+1 兵三進一 Red Soldier on file 3 moves forward one step
R+-2 前俥退二 the front of two Red Chariots on one file moves back two steps

Special Rules and Rulings

Rules basis: piece movement follows the standard rules of xiangqi; rulings on perpetual check, perpetual chase and repeated positions use a simplified version of the Asian xiangqi rules; draws by the 60-move rule and insufficient material follow the conditions listed above.

The part below is how this site (PlayVsAI) does things: how the AI opponent plays and how the lobby and leaderboards count. It is not part of the game rules and may differ elsewhere.

Playing on PlayVsAI

Opening Data

The variations in the first few moves come from public game data in the Chinese Chess Cloud Database (chessdb.cn) — many thanks for sharing it openly. The search, evaluation and rule rulings of this site's xiangqi AI, "Deep Reckoner", are all our own work.

Font Credit

The characters on the pieces come from TW-Kai (全字庫正楷體), part of the CNS11643 Chinese Standard Interchange Code font set by Taiwan's National Development Council, used under the Open Government Data License, version 1.0 (only the characters used on the pieces, converted to vector shapes).

Play Xiangqi (Chinese Chess) against the AI →