KOJP

Shogi (Japanese Chess) Online Game

Captured pieces come back as your own. Three computer levels or two players

Checkmate the enemy king

Tap a piece to see gold dots on every square it can reach and a red frame on every piece it can capture. Captured pieces go to the stands beside the board; tap one, then an empty square, to drop it. Sente (bottom) moves first.

Controls

Tap a piece, then a square, or drag and drop
Tap a piece on your stand, then an empty square, to drop it
Choose promotion when asked · Undo (Ctrl+Z) · 3 computer levels · 2 players

What is Shogi?

Shogi (将棋), also called Japanese chess, is a board game on a 9 by 9 grid where Sente and Gote each move 20 pieces in turn and win by checkmating the enemy king. What sets it apart from every other chess is that a captured piece becomes yours and can be dropped back onto any empty square, so the board never empties and the attack never stops.

All pieces are the same colour: wedge shaped tiles that point toward the opponent, so you tell sides apart by direction. A piece that enters the three ranks nearest the opponent may flip over and promote to a stronger piece, and a captured piece returns to its captor's stand (komadai) unpromoted. This version plays with the full standard rules, offers easy, normal and hard computer opponents, and lets two people share one screen.

How do the Shogi pieces move?

Each side has 1 king, 1 rook, 1 bishop, 2 golds, 2 silvers, 2 knights, 2 lances and 9 pawns, 20 pieces in all. The rook and bishop are the strongest, the gold is the model for every promoted piece, the knight only jumps forward, and the pawn moves one square forward.

PieceCharacterMovementPromoted
King王 · 玉One square in any of the eight directionsnone
Rook飛Any distance orthogonally龍 (dragon): rook plus one square diagonally
Bishop角Any distance diagonally馬 (horse): bishop plus one square orthogonally
Gold金One square forward, forward diagonal, sideways or backward (not backward diagonal)none
Silver銀One square forward, forward diagonal or backward diagonal (not sideways or straight back)全: moves like a gold
Knight桂Two squares forward then one sideways, jumping over pieces. Never backward圭: moves like a gold
Lance香Any distance straight forward杏: moves like a gold
Pawn歩One square forwardと (tokin): moves like a gold

The computer values pieces roughly as pawn 1, lance 3.5, knight 4.5, silver 5.5, gold 6, bishop 9.5 and rook 11, and a promoted pawn counts the same as a gold. Turning a single pawn into a gold is why pushing pawns into the enemy camp is the basic attack in shogi.

When and how do pieces promote?

A piece may promote at the end of any move that starts or ends inside the three ranks nearest the opponent. The king and gold never promote, and a promoted piece reverts to its original form when captured.

How do captured pieces come back?

A captured piece goes to your stand, and on your turn you may drop one piece from the stand onto any empty square instead of moving a piece. It enters unpromoted and a drop can never promote. Three restrictions apply.

RestrictionMeaning
Nifu (二歩)No pawn may be dropped on a file that already has one of your unpromoted pawns. The most common illegal move
Uchifuzume (打ち歩詰め)A pawn drop may not deliver immediate checkmate. Checkmate by moving a pawn is fine
Dead squaresA pawn or lance may not be dropped on the last rank, nor a knight on the last two ranks

When you tap a piece on the stand, this game only marks the squares where the drop is legal, so nifu and dead squares never happen and squares that would be uchifuzume are left out automatically. On the keyboard, keys 1 to 7 pick the rook, bishop, gold, silver, knight, lance and pawn from your stand in that order.

How does a game of Shogi end?

If you are in check and no move can escape it, you lose by checkmate (tsumi). A side with no legal move loses even without check, and a position that repeats four times is a draw by sennichite.

How is Shogi different from Janggi and Xiangqi?

The three games share an ancestor, but only shogi reuses captured pieces and has promotion, and it has no river or palace and places pieces inside squares rather than on points. Keeping the differences in mind makes it easy to switch. You can also play Janggi and Xiangqi against the computer here.

ItemShogi (Japan)Janggi (Korea)Xiangqi (China)
Board9 by 9 squares, pieces inside squares9 by 10 points, palace9 by 10 points, river and palace
Pieces20 per side, 8 kinds16 per side, 7 kinds16 per side, 7 kinds
ShapeSame colour wedges, told apart by directionOctagons, red and green sidesRound discs, red and black sides
Captured piecesDropped back as your ownRemoved from playRemoved from play
PromotionFlip in the far three ranksNoneNone
KingMay go anywhereConfined to the palaceConfined to the palace, may not face the other king
CannonNoneMoves and captures by jumping one pieceJumps one piece only to capture
No legal moveThat side losesThat side passesThat side loses

How strong are the computer levels?

Easy looks one ply ahead and deliberately mixes in shaky moves, normal looks three plies ahead, and hard reads as far as it can within one second, usually five to seven plies. All three avoid moves that would lose by sennichite.

The engine uses alpha beta pruning with iterative deepening and keeps examining captures until the position is quiet. Because drops are counted as well, a typical position offers more than 80 candidate moves, but the engine thinks on a separate worker thread so the screen never freezes. On the first screen you can choose to play Sente (first) or Gote (second); choosing Gote flips the board so your pieces are at the bottom. Wins, losses and draws are kept per level in this browser.

Tips for Shogi beginners

  1. Open the bishop's diagonal first. Pushing the pawn in front of the bishop (7六歩) is the classic first move. Pushing the rook's pawn (2六歩) is the other common choice.
  2. Move the king away from the rook. The rook's side of the board becomes the battlefield. Walking the king to the other side and surrounding it with golds and silvers is called a castle (kakoi), and without one a single drop can bring the king down.
  3. Check the file before dropping a pawn. Nifu is an instant loss in formal play. This game prevents it, but get used to noticing which files already hold one of your unpromoted pawns.
  4. Drop pieces next to the enemy king. Most checkmates come from dropping a gold or silver right beside the king. When you have a gold in hand, look at the empty squares around the enemy king first.
  5. Silvers attack, golds defend. A silver can retreat diagonally, which makes it a good piece to push forward, while a gold moves sideways and straight back, which makes it a good guard.
  6. Do not delay promotion. A pawn that enters the enemy camp becomes a tokin worth a gold at once. A rook or bishop only has to pass through the zone to become a dragon or horse.

Controls

The pieces use the Japanese characters (王 玉 飛 角 金 銀 桂 香 歩, promoted 龍 馬 全 圭 杏 と). The board and pieces are drawn entirely in code; only your records and settings are stored in this browser and nothing is sent to a server.

Frequently asked questions

Is Shogi free to play here?

Yes. No sign up or download, just play on this page. It works on computers, phones and tablets.

Is Shogi the same as Japanese chess?

Yes. Shogi is the Japanese name of 将棋 and Japanese chess is its English name. It is the game on a 9 by 9 board where captured pieces are dropped back into play.

How do I drop a captured piece?

Captured pieces appear on your stand beside the board. On your turn tap one, then tap an empty square, and it is placed there unpromoted. Squares that would break the nifu, uchifuzume or dead square rules are simply not offered.

What is nifu?

Nifu is dropping a pawn on a file that already contains one of your unpromoted pawns. In formal play it loses the game immediately; here the game never lets you drop on such a square.

Do I have to promote?

A pawn or lance on the last rank and a knight on the last two ranks must promote. Otherwise it is your choice: rooks, bishops and pawns promote automatically because declining is never better, while silvers, knights and lances show both tiles and let you pick.

What is the biggest difference from Korean Janggi?

In shogi captured pieces can be dropped back as your own, pieces promote in the enemy camp, there is no palace or cannon, and the king may go anywhere. Pieces sit inside squares rather than on points, and having no legal move loses instead of passing.

How strong is the hard computer?

It reads as deep as it can within one second, usually five to seven plies, and counts every possible drop, so it is good at finding mates by dropping a gold or silver beside the king. Start on easy or normal if you are new to the game.

Where are my records stored?

Wins, losses and draws per level and your sound and hint settings are stored only in this browser. Nothing is sent to a server, and clearing browser data removes them.