Turn Your turn
You play
Move1
RankNovice

Xiangqi: play Chinese chess online free

Xiangqi, also called Chinese chess, is one of the most played strategy board games on Earth: two armies face each other across a river, chariots sweep the board, horses jump and cannons need a screen to capture. Play the computer on four levels, take on odds games with a horse or a chariot less for the opponent, use a fair chess-style clock if you like, play best-of-3 or best-of-5 matches, offer draws, ask for hints and take moves back. Share one screen or play online with a friend or a random player. Pieces show the traditional Chinese characters or Western letters. Ranks, a practice rating, 18 badges and leaderboards included. Free in any browser on a computer, tablet or phone.

▶ PLAY XIANGQI

Your record on this device: no games yet
GenreBoard game, strategy
Board9 files by 10 ranks, river and palaces
ModesVs computer, matches, two players, online
LevelsEasy, Medium, Hard, Expert
ExtrasOdds games, clocks, draw offers, hints, undo
Rewards10 ranks, rating, 18 badges, leaderboards
PriceFree, no sign-up, no download

How to play Xiangqi

  1. Choose a computer level (or play a friend), then pick Red or Black. Red moves first and sits at the bottom of the board.
  2. Tap one of your pieces: golden dots show where it can move and red rings show the pieces it can capture.
  3. Tap a dot or a ringed piece to move there. A move that would leave your own general in check is not allowed.
  4. When you attack the enemy general the game calls "Check". The attacked side must escape at once: move the general, block or capture the attacker.
  5. You win by checkmate or by stalemate (the player with no legal move loses). Repeating a position three times is a draw, but giving perpetual check loses.

Mouse and touch: tap one of your pieces, then tap a golden dot to move, or a piece with a red ring to capture it. Tap the same piece again to put it down. Keyboard: the arrow keys move the cursor, Enter or Space selects, Escape cancels, U takes back a move, H shows a hint and N opens the new game menu.

Xiangqi pieces and how they move

PieceRed / BlackHow it moves
👑 General帥 / 將One point up, down or sideways, never leaving the 3×3 palace. The two generals may never face each other on an open file.
🛡️ Advisor仕 / 士One point diagonally inside the palace.
🐘 Elephant相 / 象Exactly two points diagonally, never across the river, and not if the point in between is occupied.
🐎 Horse傌 / 馬One point straight, then one diagonally outward, like a chess knight, but it is blocked if the first point is occupied ("hobbled leg").
🛞 Chariot俥 / 車Any number of free points along a rank or file, like a chess rook. The strongest piece.
💥 Cannon炮 / 砲Moves like a chariot, but captures only by jumping over exactly one piece (the screen) to the piece behind it.
🪖 Soldier兵 / 卒One point forward. After it has crossed the river it may also step sideways. It never moves backward and never promotes.

Rules: check, checkmate and draws

SituationWhat happens
⚠️ CheckYour general is attacked. You must get out of check on your move: move the general, capture the attacker or block the line. You may not make a move that leaves your own general attacked.
👑 CheckmateIn check with no way out: you lose.
🚫 StalemateNot in check but no legal move: in Xiangqi the stalemated player loses (it is not a draw as in chess).
🔁 RepetitionA position that occurs three times is a draw. If one side gave check on every move of the cycle (perpetual check), that side loses instead.
⏳ No progressThe game is drawn after 60 moves each without a capture.
🐎 Odds gamesHorse odds or Chariot odds: the computer (Black in a two-player game) starts without one horse or one chariot. A fair way for newcomers to win, with a lower leaderboard score.

Strategy: chariots, cannons and the river

IdeaWhat it isWhy it matters
🛞 Open the chariotsMove the chariots off the back rank early, onto open filesA chariot in the corner does nothing; one on an open file controls the game
💥 Cannon on the centre filePut a cannon on the middle file facing the enemy generalThe "central cannon" opening creates an early threat
🐎 Horse before the riverKeep horses in the middle where they have roomHorses on the edge or with a hobbled leg are weak
🪖 Soldiers across the riverA soldier on the enemy half can step sidewaysTwo soldiers next to an advisor-less palace often decide an endgame
👑 Flying generalGenerals may not face each other on an open fileYou can win by opening a file so that your opponent cannot avoid it

In the opening, develop a chariot and a cannon before moving the same piece twice. In the endgame keep your advisors and elephants: they protect the palace against chariots and soldiers. The hint button shows the move the computer would play.

Computer levels

LevelPlays likeGood for
🌱 EasyLooks one move ahead and often picks a nearby moveLearning how the pieces move
🏮 MediumSearches two moves ahead and rarely leaves a piece hangingCasual players who want a real game
🐎 HardSearches three moves ahead with a capture search, so it sees exchangesExperienced players
🐉 ExpertDeep alpha-beta search with iterative deepening and a careful evaluation of positionA proper challenge

The computer thinks in the background, so the board keeps moving while it plans. You can play Red (you move first), Black (the computer starts and the board turns around) or a random side, take back moves with Undo and ask for a Hint whenever it is your turn.

Play Xiangqi online with a friend

Online Xiangqi is a real game against a real person. Choose an optional clock in the lobby: no clock, blitz (3 minutes plus 2 seconds a move), rapid (10 plus 5) or classic (15 plus 10). Both browsers check every move with the same rules, and the moves travel directly between the two players (peer to peer), so it is fast and needs no account.

Prefer to watch first? The 45-second online play demo on the home page shows every step.

Start a game with a friend

  1. Tap the pink Play with a friend button (or choose Play online in the menu), type your name and choose a variant and a clock, then Invite a friend.
  2. Send the 5-character code or the invite link with Share, Copy link or Copy code, and keep the window open.
  3. Your friend opens Xiangqi, taps Play with a friend, then Join a friend, types the code and presses Join. The link does this for them.
  4. The game starts by itself. The sides are drawn at random.

No friend at hand?

Tap Random player to be paired with the next person looking for a game, or pick one of the open games in the list.

During the game

Tap the 😊 button to send a quick reaction, and keep an eye on the turn chip: it glows when it is your move, and the browser tab says so when you are in another tab. Use the New game menu to offer a draw; your opponent can accept or decline. While an online game is on, the pink button hides and an exit icon appears in the top bar: tap it once and it turns red, tap again to leave (your opponent wins). If the connection drops for a moment the game waits and reconnects by itself. At the end, press Rematch: the sides swap, and the session score against your opponent is kept.

Tips for beating a person at Xiangqi

  • Check the screens. Cannons need exactly one piece in between, horses can be blocked: look before you move.
  • Use the clock on blitz. Play the opening quickly and save your time for the middlegame.
  • Watch the flying general. Moving the last piece off a file can expose your own general.
  • Offer a draw when neither side can make progress.

Game modes, ranks, rating and leaderboards

Play the computer against Easy, Medium, Hard or Expert, with your own record for each level. Choose a single game, a best of 3 or a best of 5 match, and an optional clock. Two players, one screen lets two people take turns on the same device, and Play online connects you with a friend or a random player. Choose the level, side, clock and players in Settings (the cog), then press New game (the circular arrow).

Every finished game earns XP, and your first win of the day adds a bonus. XP raises your rank through ten steps from Pawn to Legend. Your practice rating (an Elo-style number that starts at 1000) moves after every game against the computer or a real opponent. Wins against the computer can go on the leaderboard, with This month and All time panels: A win scores 300 points, plus 8 for every one of your pieces still on the board, plus a level bonus (Easy 0, Medium 100, Hard 250, Expert 450). Odds games score 60 percent of that. You only pick a nickname and can delete your scores at any time. Online games, two-player games, draws and losses are not ranked.

Badges

There are 18 badges: for beating each level, winning streaks, giving check, capturing with cannons and chariots, checkmates, clock games, matches, two-player and online games, your rating and the number of games played. Open the medal button in the game to see your progress.

BadgeHow to earn it
🏅 First VictoryWin a game against the computer.
🌱 Bamboo ShootBeat the computer on Easy.
🏮 Lantern BearerBeat the computer on Medium.
🐎 River CrosserBeat the computer on Hard.
🐉 Dragon GateBeat the computer on Expert.
🏆 Hard FighterWin 5 games on Hard or Expert.
🎯 Hat-trickWin 3 games in a row against the computer.
⚠️ Check!Give check 25 times in games against the computer or a friend online.
💥 Cannon FireCapture 20 pieces with a cannon.
🛞 Chariot ChargeCapture 20 pieces with a chariot.
👑 CheckmateWin a game by checkmate.
🛡️ Heavy GuardWin a game and still have both chariots and both cannons.
⏱️ Clock MasterWin a game against the computer with a clock running.
🎖️ Match WinnerWin a best-of-3 or best-of-5 match against the computer.
👥 Friendly GameFinish a two-player game on one screen.
🌐 Online WinnerWin an online game against a real person.
📈 Rising StarReach a rating of 1200.
🎲 RegularPlay 25 games.

Xiangqi tips

  1. Activate your chariots. Open a file for each chariot before the opponent does.
  2. Never leave a cannon without a screen or a screen that can be captured for free.
  3. Protect the palace. Advisors and elephants are weak attackers but strong defenders.
  4. Look for double attacks. A horse fork or a chariot attacking two pieces wins material.
  5. Trade when ahead. With a chariot more, swap off the other heavy pieces.
  6. Avoid perpetual check. Repeating checks loses the game: find another attack.

Frequently asked questions

Is Xiangqi free?

Yes. Xiangqi on Util.Ninja is completely free to play online, with no sign-up, no download and no in-app purchases. It runs in your browser on computers, tablets and phones, and your statistics, rating and badges are saved on your own device.

Can I play Xiangqi online against another person?

Yes. Tap Play with a friend (or Play online in the New game menu), choose a variant, then Invite a friend and send the 5-character code or the link, or pick Random player or an open game for a quick match. The two browsers are connected directly (peer to peer), so every move shows up on your opponent's screen at once and no account is needed. You can send quick reactions during the game, offer or accept a draw where the rules allow it, and ask for a rematch at the end: the sides swap so both players get to start.

How do I leave an online Xiangqi game?

Tap the exit icon in the top bar. The first tap turns it red, the second tap leaves the game and your opponent wins. You can also give up from the New game menu. If your opponent leaves or loses the connection, you win. On a very strict network a direct connection may not be possible; try another network or a mobile connection.

What are the computer levels in Xiangqi?

Easy looks one move ahead and often picks a nearby move. Medium searches two moves ahead. Hard searches three moves ahead with a capture search. Expert searches much deeper. No level cheats: they all play by the same rules as you.

Does Xiangqi have a clock?

It can. Before a game against the computer or in an online lobby you can choose No clock, 3 + 2 (three minutes each plus two seconds after every move), 10 + 5 or 15 + 10. If your time runs out you lose. Against the computer the clock only runs while no dialog is open.

What is a series or match?

Before you start against the computer you can pick Single game, Best of 3 or Best of 5. The sides swap after every game, the match score is shown in the top bar, and winning a whole match gives a bonus of 80 XP and counts as a Series win in your statistics. Online, the score of your session against the same opponent is shown after every rematch.

How do ranks, XP and the rating work in Xiangqi?

Every finished game earns XP: a win against the computer earns more on higher levels, and your first win of the day adds a bonus of 50 XP. XP raises your rank through ten steps (Pawn, Scholar, Guard, Horseman, Charioteer, Tactician, Marshal, General, Grandmaster, Legend). Separately you have a practice rating, like an Elo score, that starts at 1000 and goes up when you beat stronger opponents and down when you lose to weaker ones. It is stored on your device and also moves in online games, using the rating your opponent's browser reports.

Does Xiangqi have a leaderboard?

Yes. Wins against the computer are ranked on a leaderboard for each level, with This month and All time panels. A win scores 300 points, plus 8 for every one of your pieces still on the board, plus a level bonus (Easy 0, Medium 100, Hard 250, Expert 450). Odds games score 60 percent of that. You only choose a nickname, and you can delete your scores at any time. Online games, two-player games, draws and losses are not ranked.

Can I play Xiangqi on a phone?

Yes. Xiangqi works on phones and tablets in portrait and landscape; the pieces you capture sit in a tray beside the board. Just tap a piece and then a dot. On a computer use the mouse, or the arrow keys and Enter.

Is Xiangqi safe to play online?

The game never asks for personal data. Only your nickname and the moves travel between the two browsers, and every move is checked by the rules engine on both sides, so an impossible move ends the game instead of changing the result. Nothing is stored on a server except the optional leaderboard nickname and score.

How do you play Xiangqi?

Two players, Red and Black, take turns moving one piece. Each side has a general, two advisors, two elephants, two horses, two chariots, two cannons and five soldiers on a board of 9 by 10 points with a river in the middle. You win by checkmating the enemy general, or by leaving him with no legal move.

What is the difference between Xiangqi and chess?

Xiangqi is played on the points of the lines, not on squares. There is a river in the middle that elephants cannot cross, generals stay in a palace, cannons capture by jumping over a screen, and there is no castling, en passant or promotion. A stalemate is a loss, and the two generals may never face each other on an open file.

How does the cannon capture?

A cannon moves like a chariot, any distance along a line, but to capture it must jump over exactly one piece of either colour (the screen) and land on the enemy piece right behind it. Without a capture it cannot jump.

What does "flying general" mean?

The two generals may not stand on the same file with no piece between them. A move that would leave them facing each other is illegal, and the rule is also used to give check: if you open the file, the general is attacked.

Is a stalemate a draw in Xiangqi?

No. A player who is not in check but has no legal move loses the game. This game follows that rule.

What is perpetual check?

Giving check on every move to force a repetition. Under the rule used here, if a position repeats three times and one side gave check on every one of its moves in the cycle, that side loses. If both sides were doing it, or neither, the game is drawn.

What are the odds games?

In Horse odds or Chariot odds the computer starts without one horse or one chariot, which makes the game easier for a newcomer. In a two-player game on one screen Black gets the handicap. Odds games are not available online and score 60 percent of a normal win on the leaderboard.

Can I show letters instead of Chinese characters?

Yes. Open Settings and switch on Letters instead of characters: K for the general, A advisor, E elephant, H horse, R chariot, C cannon and P soldier. The red and black colours stay.

Is Xiangqi the same as Chinese chess?

Yes. Xiangqi (象棋) means "elephant chess" and is the name of Chinese chess in Chinese. In Vietnam a close relative is called Cờ tướng.

More free board games to play online: Chess, Checkers, Backgammon, Mancala and Gomoku.