Xiangqi (象棋), or Chinese Chess, is one of the most played board games in the world. Two players, Red and Black, take turns to move one piece each. Red always moves first. The goal is to trap the opposing General.
The Board
The board has 9 files (columns) and 10 ranks (rows), and the pieces stand on the intersections of the lines, not inside the squares. An empty band called the river splits the board in two, with each player starting on their own side of it. Each side also has a 3×3 area called the palace, marked with diagonal lines, where the General and Advisors live. Red is shown at the bottom.
How to Win
You win by checkmate: attacking the enemy General so that no move can save it. Unlike in Chess, stalemate is a loss for the player who has no legal move. Repeating checks forever (perpetual check) or endlessly chasing a piece (perpetual chase) is not allowed, so the player doing it must change their play.
Pieces
(You can move them, go on... Give it a go! Click or drag a piece to see where it can go.)
General
The General (King) moves one point orthogonally (forwards, backwards or sideways) and must always stay inside its palace.
Flying General: the two Generals may never face each other on the same file with nothing between them. So a General cannot step onto an open file facing the other one, and a piece standing between them cannot leave the file. In the first board, neither General may step onto the other's file. In the second, the Elephant is the only piece between the Generals: every Elephant move would leave the file, so it cannot move at all.
Generals on different files
A pinned Elephant
Advisor
The Advisor (Guard) moves one point diagonally and can never leave the palace. It is a modest piece, but a good defender next to your General.
Elephant
The Elephant moves exactly two points diagonally. It cannot cross the river, so it only defends its own half. If the point in between (the elephant's eye) is occupied, by either side, the Elephant is blocked in that direction.
Horse
The Horse moves one point orthogonally, then one point diagonally outward, like an L-shape. But it can be hobbled: if the point right next to it in the direction of travel is occupied, it cannot move that way at all. Notice the blocking piece in the demo.
Chariot
The Chariot (Rook) moves any distance orthogonally, just like the rook in Chess. It cannot jump over pieces, and it captures the first enemy piece in its way. It is the most powerful piece in Xiangqi.
Cannon
The Cannon moves like a Chariot when it is not capturing. To capture, it must jump over exactly one piece (the screen, of either colour) and land on an enemy piece behind it. Without a screen it cannot capture, and it cannot jump two pieces.
Soldier
The Soldier (Pawn) moves one point forward. Once it has crossed the river it may also move one point sideways. It never moves backwards and is never promoted. In the demo, the Soldier on the left has not crossed the river yet; the one on the right has.
Notation
Files are lettered a to i from left to right and ranks are numbered 1 to 10, both counted from Red's side. A move is written as the point it starts from followed by the point it ends on, for example h3h10 is a move from h3 to h10 (typically a Cannon capture along the h file).