한국어

Janggi (Korean Chess)

Cho vs Han, played to checkmate

Settings

Cho setup

Han setup

Your record ·

0Won
0Lost
0Drawn

How do you win at Janggi?

You win by checkmating the enemy general: putting it in check so that no move can get it out. Cho (green) moves first, then the two sides take turns moving one piece at a time.

Janggi is the traditional chess of Korea. The board has 10 horizontal and 9 vertical lines, and pieces stand on the points where lines cross, not inside squares. Each side has a palace, the 3 by 3 area marked with an X at the middle of its back rows. The general and its two guards can never leave the palace. A move that leaves your own general in check is not allowed.

House rules on this site: if a player has no legal move and is not in check, the game is a draw. If the game reaches 200 moves in total, it is decided on material points, and Han, who moves second, gets a 1.5 point bonus. This site does not use the bikjang rule (facing generals) or passing, so the generals may face each other on an open file and play simply goes on.

How do the Janggi pieces move?

Each side has 16 pieces: 1 general, 2 chariots, 2 cannons, 2 horses, 2 elephants, 2 guards and 5 soldiers. The chariot, which slides any distance in a straight line, is the strongest.

PieceHow it movesPoints
General (Gung, 楚 or 漢)One step along the lines inside its palace, including the palace diagonalsNone
Guard (Sa, 士)Same as the general: one step, palace only3
Chariot (Cha, 車)Any distance in a straight line, like a chess rook. Also along the palace diagonals13
Cannon (Po, 包)Must jump exactly one piece along a line to move or capture. Cannot jump or capture another cannon7
Horse (Ma, 馬)One step straight, then one step diagonally outward. Blocked if the first point is occupied5
Elephant (Sang, 象)One step straight, then two steps diagonally. Blocked if either point on the way is occupied3
Soldier (Jol 卒, Byeong 兵)One step forward or sideways, never back. Inside the enemy palace it may also step diagonally forward2

Unlike the chess knight, the Janggi horse and elephant can be blocked. If a piece sits on the first point of their path, they cannot go that way. Koreans call this blocked point the "myeok".

How does the cannon move in Janggi?

The cannon always has to jump over exactly one piece along a straight line. After the jump it can stop on any empty point or capture the first enemy piece it meets.

The piece it jumps over, called the screen, can be yours or your opponent's, but it can never be a cannon, and a cannon can never capture a cannon. With no screen, the cannon cannot move at all, so it is strongest early in the game when the board is crowded. Inside a palace it can also jump diagonally from one corner, over a piece on the center point, to the opposite corner. A cannon check can be answered by moving the general, by moving the screen away, or by putting a second piece in between.

What is the horse and elephant setup?

Before the game starts, each player chooses one of four ways to place the horses and elephants on the four back row points between the chariots and the guards. On this site you pick it in Settings.

SetupBack row, from your left
E-H-E-H (default)Chariot, Elephant, Horse, Guard · Guard, Elephant, Horse, Chariot
H-E-H-EChariot, Horse, Elephant, Guard · Guard, Horse, Elephant, Chariot
H-E-E-HChariot, Horse, Elephant, Guard · Guard, Elephant, Horse, Chariot
E-H-H-EChariot, Elephant, Horse, Guard · Guard, Horse, Elephant, Chariot

The setup changes which paths the horses and elephants have in the first few moves, so each one leads to a different opening. In Korean the four are written 상마상마, 마상마상, 마상상마 and 상마마상 (sang is elephant, ma is horse). When you play the computer you choose only your own setup. The computer picks its setup at random each game and the hint line tells you which one it chose.

What is the difference between Janggi and Chinese chess (Xiangqi)?

The boards look alike, but Janggi has no river, the cannon must jump even to move, and the elephant moves farther and can go anywhere. Compared with Western chess, Janggi is played on points, the general stays in its palace, and soldiers never promote.

Tips for Janggi beginners

  1. Protect your chariots. Worth 13 points, they are your strongest pieces. Trading one for a horse or elephant early is a big loss.
  2. Use cannons while the board is full. They need screens, so they lose power late in the game. Avoid giving the enemy cannon an easy piece to jump over.
  3. Check the blocking points. A horse or elephant cannot pass an occupied first point. Placing a piece in front of an enemy horse can freeze it.
  4. Keep soldiers side by side. Soldiers capture sideways, so two soldiers next to each other guard each other.
  5. Aim at the palace diagonals. Chariots and cannons can travel along them, and most checkmates come from attacking a palace corner and the center together.
  6. In check, look at all three answers. Move the general, block the line, or capture the checking piece, and pick the one that costs you least.

How do I set the computer's rank and odds?

If you are new, start at 18 or 15 kyu and move up one step once you start winning. If a higher rank is too strong, play an odds game where the computer starts without its chariot or cannon.

The computer has seven ranks: 18, 15, 12, 9, 6, 3 and 1 kyu. Higher ranks read further ahead, and lower ranks deliberately mix in weaker moves. In computer vs computer tests each rank beats the ones below it, but the labels are rough strength guides, not official ranks.

Odds games are the traditional way to balance players of different strength in Janggi: the stronger side removes pieces before the game. Here the computer can play without a cannon, a horse, a chariot, or a chariot and a cannon. Minus cannon is the smallest gap and minus chariot and cannon the largest.

At 1 kyu the computer looks as many moves ahead as it can within its thinking time and plays out every capture sequence to the end. If you are new to Janggi, start at a low rank and get comfortable with the chariot and cannon first.

How to play on this site

Frequently asked questions

How do you play Janggi?

Janggi is Korean chess. Two players, Cho (green) and Han (red), take turns moving one piece on a board of 9 by 10 lines. Each piece has its own way of moving, and you win by checkmating the enemy general, which must stay inside its palace. Cho moves first.

What is the difference between Janggi and Chinese chess?

Janggi has no river across the middle of the board, the cannon must jump over a piece even to move, the elephant moves one point straight and two diagonally and can cross the whole board, and the general can move along the palace diagonals. Each side also chooses one of four horse and elephant setups before the game.

Can I choose how strong the Janggi computer is?

Yes. Choose a rank from 18 kyu to 1 kyu in seven steps, and play odds games where the computer starts without a cannon, horse, chariot, or chariot and cannon.

Is Janggi the same as Korean chess?

Yes. Janggi (장기) is the name of the traditional chess game of Korea. It comes from the same family as Chinese Xiangqi but has its own rules and pieces shaped as octagons of different sizes.

Is this Janggi game free?

Yes. You can play it free on this page with no download or sign up, on a computer, phone or tablet, against the computer at seven ranks or with a friend on one screen.

Why can my cannon not move?

A Janggi cannon needs exactly one piece to jump over along a straight line. If there is no piece to jump, or the only piece in the way is a cannon, it cannot move in that direction. Tap your cannon to see its legal moves.

What happens if nobody gets checkmated?

On this site the game is decided at 200 moves in total by counting the pieces left: chariot 13, cannon 7, horse 5, elephant 3, guard 3, soldier 2. Han gets 1.5 bonus points for moving second, so there is always a winner. This site does not use the bikjang (facing generals) rule.

Where is my record saved?

Your wins, losses and draws against the computer are stored only in this browser. Nothing is sent to a server, and clearing your browser data removes them.