AT THE TABLE
Loading the engine…
Python runs in your browser. The first load needs an internet connection.
Settings apply to a new game. With a trained model, Easy uses random play; other levels use the model directly.
A quick guide to Xiangqi
Select a piece to see its legal destinations, then select a destination to move. Red moves first. Pieces sit on intersections.
Chariots move straight. Horses move in an L, but their first step can be blocked. Elephants move two diagonally, cannot jump, and stay behind the river. Advisors move one diagonally inside the palace. Generals move one straight inside the palace and cannot face each other without a piece between them.
Cannons move straight and must jump exactly one piece to capture. Soldiers move forward, gaining sideways moves after crossing the river. They never retreat or promote.
Checkmate and stalemate both lose. Threefold repetition is a draw unless one side perpetually checks; that side loses. A 300-ply cap draws. Tournament perpetual-chase rules are not implemented.
Explore the rules ↗