Play Xiangqi

Xiangqi openings

Xiangqi openings are short and direct, because the first move can already threaten something. You do not need long lines to start. You need to know what each first move is trying to do and what it asks of your opponent.

Moves are written from point to point: h2e2 moves the piece on h2 to e2. Files run a to i from Red's left, and ranks 0 to 9 from Red's back rank. Every line on this page is played through the same rules code as a live game.

The central cannon

Move a cannon to the middle file and it stands behind your own e-file soldier. That soldier becomes the screen, so the cannon already attacks the enemy soldier on e6. Your first move has created a threat that needs an answer.

After h2e2 the cannon can jump its own soldier on e3 and take the soldier on e6.

Answering with screen horses

The classic reply brings both horses toward the centre. From c7 and g7 each of them guards the soldier on e6, so a cannon that takes it is recaptured. The horses also stand in front of the general and leave the chariots room to come out along the back rank.

Red's h0g2 develops a horse and clears the way for the chariot. Black's horses on c7 and g7 both guard e6.

If you learn one opening for each side, learn this pair. Most of what happens afterward comes from the same few ideas: bring a chariot to an open file, and do not let one horse stand with its leg blocked.

Meeting cannon with cannon

Black can also answer by putting a cannon on the middle file. The two versions have their own names, and the difference is only which cannon Black moves.

Same-direction cannons (順炮): both cannons slide the same way across the board, h2e2 and h7e7.
Opposite-direction cannons (列炮): Black uses the other cannon, b7e7, so the two travel in opposite directions.

Both lead to sharper games than screen horses, with cannons facing each other down the file from the first moves. Count the screens on that file before every capture: one piece between a cannon and its target means it can take, and two means it cannot.

Three quieter first moves

Red does not have to attack straight away. These three moves make no immediate threat, and they let Red choose a plan after seeing Black's reply.

Elephant opening (飛相局), g0e2: the elephant strengthens the middle of Red's camp before anything else.
Soldier opening (仙人指路), c3c4: one soldier steps up, which opens a path for the horse behind it and tests Black's intentions.
Horse opening (起馬局), h0g2: a useful developing move that keeps every option open, including the central cannon next.

What to do in any opening

  1. Get a chariot out early. It is your strongest piece and it does nothing in the corner.
  2. Develop horses toward the centre, and check that nothing is about to stand on the point next to them.
  3. Leave the advisors and elephants at home until you have a reason to move them. They are how your general survives later.
  4. Answer threats before making your own. The first capture in xiangqi often comes within a few moves.

To try these lines, open a board and play them out with a friend, or practise tactics on puzzles first. If a move looks illegal, the rules have one section per piece.


Next: Tactics · Play a game