Chinese Chess

Play Xiangqi (Chinese Chess) against a rule-based AI. Classic strategy game with unique pieces and movement rules. Choose from three CPU strategies.

How to Play Chinese Chess

  1. Red moves first. Select a side to play as (Red, Black, PvP, or CPU). In CPU mode the AI controls both sides.
  2. Choose a CPU strategy for each AI side: Smart plays principled Xiangqi with variety, Best always picks the strongest move, Random picks any legal move.
  3. Click a piece to select it; legal destinations highlight on the board. Click a highlighted point to move.
  4. The General must stay within the palace and may never face the opposing General with no pieces between them. Checkmate or stalemate the opponent's General to win.

Frequently Asked Questions

What CPU strategies are available?
Smart follows the rule-based AI priority order and picks randomly among moves with similar positional scores — strong but varied. Best always picks the single highest-scored move — the strongest and most consistent play. Random picks any legal move with no rules or scoring — completely unpredictable.
How is Chinese Chess different from Western Chess?
Pieces sit on intersections rather than squares; the board is divided by a river that restricts some pieces; and the General and Advisors cannot leave the palace.
What does the Cannon do?
The Cannon moves any number of points orthogonally like a Chariot, but can only capture by jumping over exactly one piece (the "screen") and landing on an enemy behind it.
What is the flying General rule?
The two Generals may never face each other along an open file with no pieces between them. A move that creates this situation is illegal.
How does the rule-based AI choose a move?
It works down a priority list: checkmate, capture the General, give check, then captures ordered by piece value — Chariot, Cannon, Horse, then anything else. Below that it prefers crossing the river, advancing a Pawn, and pushing a Chariot, Cannon or Horse forward. The position score picks the strongest move within whichever rule fires.
Why do so many CPU-vs-CPU games end in a draw?
The AI looks one move ahead, so neither side can set up the multi-move mating nets that decide most real Xiangqi games. Two evenly matched rule-based sides tend to shuffle to a repetition draw. Playing one side yourself, or setting the CPU to Random, produces far more decisive games.

Related Games

ChessChinese CheckersGo