Chinese Chess
Generals in palaces, cannons leaping screens, and chariots ruling ninety intersections.
- Strategy
- Capture
- 2 players
- Length
- About 20 min
- Complexity
- Luck
Loading games…
How to play
The classic Chinese game of generals, chariots and cannons.
- 1The board features 9 files and 10 ranks forming 90 intersections, split by a central river and bounded by two palaces. Red moves first, and players alternate moving one piece per turn.
- 2Each player commands 16 pieces: 1 General, 2 Advisors, 2 Elephants, 2 Horses, 2 Chariots, 2 Cannons, and 5 Soldiers. Pieces move along the grid lines directly onto intersections.
- 3Move and capture according to piece-specific rules: Chariots sweep open files, Horses step and leap unless hobbled, Cannons leap over exactly one screen to capture, and Elephants guard the home bank without crossing the river.
- 4Win by checkmating the opposing General or delivering stalemate (leaving the opponent with no legal moves). The two Generals may never face each other across an open unobstructed file.
- 5When the same position with the same side to move appears for the third time, exactly one side giving check on every move in the cycle loses for perpetual check. If both sides do so, or neither side does, the game is drawn. These are TabletopMCP simplified rules and may differ from detailed WXF competition rules; full perpetual-chasing classifications are not implemented. A draw also occurs after 120 consecutive half-moves without capture, or at the default limit of 400 total half-moves. Each player move is one half-move; a capture resets the no-capture counter. Checkmate or stalemate takes priority.
Full rules (technical)
TabletopMCP Xiangqi Rules
Xiangqi is playable on TabletopMCP. These are the simplified rules implemented here, with basic piece movements based on WXF. Repetition and perpetual-check rulings may differ from detailed WXF competition rules; the full classification of perpetual chasing is not implemented.
Board and Setup
The Xiangqi board consists of 9 vertical files and 10 horizontal ranks intersecting at 90 points. A central river divides the opposing territories between the fifth and sixth ranks, and each side features a 3×3 palace marked with diagonal lines. Pieces are placed and played directly on the line intersections rather than within the squares.
Each player commands 16 pieces: 1 General, 2 Advisors, 2 Elephants, 2 Horses, 2 Chariots, 2 Cannons, and 5 Soldiers. Red moves first, and players alternate moving one piece per turn.
Piece Movements and Constraints
- General (Shuai / Jiang): Confined to its palace; moves one step horizontally or vertically. The two opposing Generals may never face each other on the same vertical file without intervening pieces (the flying general rule). A player cannot make any move that leaves their General in check.
- Advisor (Shi): Confined to its palace; moves one step diagonally along the marked palace lines.
- Elephant (Xiang): Moves exactly two steps diagonally. Elephants cannot cross the river and are blocked if any piece occupies the midpoint intersection (the elephant's eye).
- Horse (Ma): Moves one step orthogonally followed by one step diagonally outward. It cannot jump; if an adjacent piece occupies the initial orthogonal point, the horse is hobbled (blocked).
- Chariot (Ju): Moves any distance orthogonally along unobstructed lines. Captures by replacing an enemy piece.
- Cannon (Pao): Moves identically to a Chariot when not capturing. To capture, it must leap over exactly one intervening piece of either color (the cannon mount).
- Soldier (Bing / Zu): Moves one step forward before crossing the river. After crossing, it may move forward or sideways one step. Soldiers never move backward and do not promote.
Winning, Stalemate, and Repetition
A player wins by checkmating the opponent's General or by stalemate (leaving the opponent with no legal moves). In Xiangqi, stalemate is a defeat for the player who cannot move, never a draw.
When the same piece configuration with the same side to move appears for the third time, the cycle between those three occurrences is examined:
- If exactly one side gave check on every one of its moves in the cycle, that side loses for perpetual check.
- If both sides gave check on every move, or neither side did, the game is drawn.
The game is drawn after 120 consecutive half-moves without a capture; a capture resets the counter. One half-move is one player's move. The default total limit is 400 half-moves, after which the game is drawn. Checkmate or stalemate on the final move takes priority over a draw limit.
Beginner Glossary & Key Differences
- Hobbling the Horse (蹩马腿): Unlike a Chess knight, a Xiangqi Horse cannot jump. Its move starts with one orthogonal step onto an adjacent intersection (the "horse's leg"); if any piece—friend or foe—occupies that adjacent point, both diagonal destinations past it are blocked.
- Blocking the Elephant's Eye (塞象眼): An Elephant moves two steps diagonally, and is blocked if any piece stands on the center intersection in between (the "eye"). Elephants also cannot cross the central river.
- Cannon Mount / Screen (炮架): A Cannon slides orthogonally like a Chariot when not capturing, but to capture an enemy piece it must leap over exactly one intervening piece of either color (the screen). Zero screens or two+ screens cannot capture.
- Palace & Flying General (九宫 / 飞将): Generals and Advisors never leave the 3×3 palace. The two Generals cannot face each other on an open file with no pieces between them, so uncovering an open file between Generals is illegal—and can be used tactically to restrict enemy moves.
- Stalemate Means Defeat (困毙): If the player to move has no legal moves (even if not in check), they lose immediately in Xiangqi—unlike Chess, where stalemate is a draw.
- Perpetual Check (长将): Repeating the same position 3 times where one side gives check on every move in the cycle loses for the checking side.
Chinese Chess questions
Can I play Chinese Chess online on TabletopMCP right now?
Yes. Chinese Chess is playable on TabletopMCP. A room can host friends or compatible AI assistants using seat invitation links.
What is the flying general (facing generals) rule?
The two Generals (Red Shuai and Black Jiang) are never allowed to face each other along the same vertical file without any piece intervening between them. Moving a piece that would leave the two generals directly facing each other is illegal, and players may never make a move that exposes their own general to immediate attack.
How do the horse and elephant get blocked (hobbling and blocking the eye)?
A horse steps one point orthogonally and then one point diagonally outward; if an adjacent point on the first orthogonal step is occupied by any piece, the horse is hobbled and cannot move in that direction. An elephant moves diagonally by two points; if the midpoint intersection between its start and destination (the elephant's eye) is occupied by any piece, it is blocked and cannot make that move.
How does the cannon move and capture?
When moving without capturing, the cannon travels like a chariot—moving any distance along an unobstructed horizontal or vertical line. To capture, however, the cannon must leap over exactly one intervening piece of either color (known as the cannon mount or screen) onto the target enemy piece. The cannon cannot jump over multiple pieces, and cannot leap when making a non-capturing move.
How do soldier (pawn) moves change after crossing the river?
Before crossing the central river, a soldier can only advance straight forward one intersection at a time. After crossing the river into enemy territory, it gains the ability to also move and capture one intersection horizontally (left or right) as well as forward. Soldiers can never move backward and do not promote into other pieces.
What happens if a player has no legal moves left (stalemate)?
A player with no legal moves loses, whether checkmated or stalemated. Moves that expose the player’s own General to check, including facing Generals, are illegal and rejected.
How are repeated moves and perpetual checks handled?
When the same position with the same side to move appears for the third time, exactly one side giving check on every move in the cycle loses for perpetual check. If both sides do so, or neither side does, the game is drawn. These are TabletopMCP simplified rules and may differ from detailed WXF competition rules; full perpetual-chasing classifications are not implemented. A draw also occurs after 120 consecutive half-moves without capture, or at the default limit of 400 total half-moves. Each player move is one half-move; a capture resets the no-capture counter. Checkmate or stalemate takes priority.
Can I invite an AI assistant to play Chinese Chess?
Yes. A seat invitation link lets a compatible AI assistant capable of executing game requests join a Chinese Chess room.
Xiangqi Pieces
Han against Chu, dragon against tiger: red are dragons, black are tigers. Each piece rides its own mount: Liu Bang commands from his platform, Xiang Yu rides his warhorse Wuzhui, horses ride horses, elephants ride elephants, cannons roll on carriages and chariots under canopies, while advisors and soldiers stand on their stands. The characters and moves follow traditional Xiangqi.
Loading 3D preview…
General帥
1 per side
Confined to the palace; moves one step horizontally or vertically. The two generals cannot face each other on an open file.
1 orthogonal step along lines inside the 3×3 palace; Generals cannot face off
Every capture has its own move: the horse leaps, the elephant stomps, the cannon fires over a screen, the chariot charges, and Liu Bang stamps with the imperial jade seal.
About the game
Origin and history
Xiangqi developed in China over many centuries. The Song period was an important stage in its spread and the formation of the game familiar today. Earlier texts use names such as xiangqi and xiangxi, but a shared name alone does not establish that those games used the modern board and rules.
Stories crediting a legendary ruler or a single commander with inventing Xiangqi are not a settled history. The relationship between early Chinese chess games and Indian Chaturanga is also debated; it should not be presented as a proven, single route of descent.
Regional rules
World Xiangqi Rules (WXF)
International standardThe World Xiangqi Federation publishes competition rules covering the shared moves, results and detailed repetition rulings. One-sided perpetual checking must be changed or is penalized with a loss; mutual perpetual checking has a separate draw provision.
Asian Xiangqi Rules (AXF)
Regional federationThe Asian Xiangqi Federation has its own published competition code. Its introduction explains the rules governing repeated positions. Check the code and edition adopted by the event rather than assuming every repetition is a draw.
Casual & Traditional Conventions
Informal playCasual games may adopt their own conventions. TabletopMCP uses the simplified rules described on this page, with threefold repetition adjudication and half-move limits rather than the full tournament code.
Invite your AI to play
Yes. Send a seat invitation link to a compatible AI assistant, or connect your own MCP client (Xiangqi MCP / Chinese Chess MCP) using game_search, game_room_create, and game_handler to join rooms, play matches, or collaborate on board drafts.
References
- World Xiangqi Rules (2018) ↗· World Xiangqi Federation · Official competition rulebook defining board geometry, piece movements, checkmate, stalemate, and perpetual check rulings.
- AXF Rules — Introduction ↗· Asian Xiangqi Federation · Explains the background of the Asian rules and links to the repetition rules.
- Xiangqi in the Song dynasty ↗· Shenzhen Qiguo Xiangqi Museum · Discusses the development and spread of Xiangqi during the Song period.
- Xiangqi ↗· Wikipedia · Overview of Xiangqi history, board layout, piece conventions, and major competitive federations.
This page is an original overview; the sources above are references only. Rules differ between sets, so check the one you own.
