Ryusei GamesClassic games in 3D

Shogi (Japanese Chess)

Shogi is played on a 9×9 board. Each player has 20 pieces of 8 kinds, and you win by checkmating your opponent’s king. Pieces you capture become your pieces in hand, and you can drop them onto the board as your own. Play the computer or send a link to play a friend. Besides even games, you can also choose from 10 handicaps.

Loading…

Rules and how to play

The board and pieces

The board has 81 squares, 9 down and 9 across. The columns are called files, and the rows are called ranks. Seen from Sente, the files are numbered 1 to 9 from right to left, and the ranks are lettered a to i from the far side (Gote’s side). A square is named by its file and rank, such as 7f. In Japanese, the ranks are written with the kanji numerals 一 to 九, so 7f is written 7六. The player who moves first is called Sente, and the player who moves second is called Gote.

Each player has 20 pieces: 1 king (玉), 1 rook (飛), and 1 bishop (角); 2 each of gold generals (金), silver generals (銀), knights (桂), and lances (香); and 9 pawns (歩). On the rank nearest to you, place, from the outside in, a lance, a knight, a silver, and a gold on each side, with the king in the middle. On the rank in front of that, place the bishop on your left and the rook on your right. On the rank in front of that, line up the 9 pawns. Your opponent’s pieces are placed with their points facing you.[1]

The starting position of an even game (seen from Sente. The top 3 ranks are Sente’s promotion zone)

Each piece is marked with 1 kanji character, shown in parentheses above. On this page, both kings are shown with the character 玉, and your opponent’s pieces are shown upside down.

How pieces move

Starting with Sente, players take turns making 1 move each. In 1 move, you either move 1 of your pieces on the board or drop 1 piece from your hand. You cannot pass.

If an opposing piece is on the destination square, you capture it. You cannot move onto a square occupied by your own piece. Except for the knight, pieces cannot jump over other pieces in their way. The pieces move as follows, where forward means toward your opponent’s side.[2][3]

  • King (玉): 1 square in any of the 8 directions.
  • Rook (飛): any number of squares straight along a file or rank.
  • Bishop (角): any number of squares straight in any of the 4 diagonal directions.
  • Gold general (金): 1 square forward, diagonally forward, sideways, or straight back, in 6 directions. It cannot move diagonally back.
  • Silver general (銀): 1 square forward, diagonally forward, or diagonally back, in 5 directions. It cannot move sideways or straight back.
  • Knight (桂): to either of the 2 squares 2 ahead and 1 to the side. It jumps over any pieces in between. It cannot move in any other direction.
  • Lance (香): any number of squares straight forward. It cannot move back or sideways.
  • Pawn (歩): 1 square forward.
How the 8 kinds of pieces move (up is forward)

Promotion

The 3 ranks on your opponent’s side are your promotion zone. When a piece moves into, within, or out of the promotion zone, you can turn it over to promote it. Promotion is optional, and moving without promoting is called funari.[2][5]

Once a piece is promoted, it stays promoted while it is on the board. Kings and gold generals cannot promote. Promoted pieces move as follows.[2][3]

  • Dragon (竜, a promoted rook, also called dragon king): moves like a rook, plus 1 square in any of the 4 diagonal directions.
  • Horse (馬, a promoted bishop, also called dragon horse): moves like a bishop, plus 1 square straight along a file or rank.
  • Promoted silver (全), promoted knight (圭), promoted lance (杏), and promoted pawn (called tokin): all move like a gold general.
How promoted pieces move (up is forward. Promoted pieces are marked in red)

Once a pawn or lance reaches the farthest rank, it can no longer move forward. A knight can no longer move once it reaches either of the 2 farthest ranks. For this reason, a move to such a rank must promote.[2][4]

Pieces in hand

An opposing piece you capture becomes your piece in hand and is placed on the piece stand beside the board. When you capture a promoted piece, it returns to its unpromoted side in your hand. On your turn, instead of moving a piece, you can drop 1 piece from your hand onto any empty square on the board. A dropped piece is only placed there and does not capture anything.[2]

Pieces in hand are always dropped unpromoted. A piece dropped into the promotion zone does not promote on that move. It can promote the next time it moves.

Winning and losing

Threatening to capture your opponent’s king on your next move is called check. A player in check must stop it by moving the king, capturing the checking piece, or moving or dropping a piece in between. A position in which check cannot be stopped in any way is checkmate, and the checkmated player loses. The king is never actually captured.

A player who resigns, admitting defeat to end the game, also loses. A player who has no legal moves when their turn comes also loses.

Fouls

There are 4 main fouls (illegal moves) that can happen on the board. Under tournament and official game rules, the player who makes a foul loses. This page does not let you make a foul. If you try, it shows the reason the move is not allowed.[4][5]

  • Nifu (two pawns): dropping a pawn on a file that already has your own unpromoted pawn. You can drop one on a file where you only have a promoted pawn.
  • Pieces with no moves: moving a piece without promoting, or dropping a piece, onto a square from which it could never move again. For pawns and lances this is the farthest rank, and for knights the 2 farthest ranks.
  • Uchifuzume (pawn-drop checkmate): checkmating your opponent’s king by dropping a pawn from your hand. Checkmating by moving a pawn already on the board is not a foul. You can still drop a pawn to give check if your opponent has a way to stop it.
  • Leaving the king in check: making a move that does not stop a check against your king. This includes moving your king onto a square attacked by an opposing piece and moving a piece of yours that stands between your king and an opposing piece.
Examples of nifu and uchifuzume (part of the board. Your side is at the bottom)

Repetition, entering king, and 500 moves

If the same position occurs 4 times, it is sennichite (repetition), and the game is a draw. The same position means that the arrangement of the pieces on the board, both players’ pieces in hand, and the player to move are all the same. In professional games, the players swap Sente and Gote and play the game again. On this page, the game is a draw, and to play again, you start a new game (the button names are in the section “Controls on this page”).[5]

If the repetition comes from one player giving check on every move, the player who kept giving check loses (perpetual check).[5][6]

When a king enters the opponent’s camp, this is called entering king (nyugyoku). When both kings have entered, it becomes hard for either player to checkmate the other. This page decides the result with the declaration method for entering king that is sometimes used in amateur tournaments. Pieces in hand and your own pieces in the promotion zone, not counting the king, are counted as 5 points for a rook or bishop (including a dragon or horse) and 1 point for any other piece. A player who meets all 4 of the following conditions can declare on their turn instead of moving, and wins the game.[6]

  • Your king is in the promotion zone (the 3 ranks on your opponent’s side).
  • You have at least 10 of your own pieces in the promotion zone, not counting the king.
  • You have at least 28 points as Sente or Shitate, or at least 27 points as Gote or Uwate (in handicap games, the points of the removed pieces are added to Uwate’s points).
  • Your king is not in check.

Under the tournament declaration method, a player who declares without meeting the conditions loses. On this page, you can only make the declaration move on a turn when you meet the conditions, so you cannot lose by declaring.[6]

When the 2 players have made 500 moves in total, the game is a draw. Under the game rules of the Japan Shogi Association, a game that reaches 500 moves is also replayed.[5]

Handicap games

When 2 players of different strength play, the stronger player removes some pieces before the game starts. This is called a handicap game. The stronger player, who removes pieces, is called Uwate, and the other player is called Shitate. A game with no pieces removed is an even game (hirate). In handicap games, Uwate moves first. The handicaps you can choose on this page and the pieces Uwate removes are as follows (left and right are as seen from Uwate).[6][8]

  • Lance handicap: the left lance (on the bishop’s side).
  • Right lance handicap: the right lance (on the rook’s side).
  • Bishop handicap: the bishop.
  • Rook handicap: the rook.
  • Rook-lance handicap: the rook and the left lance.
  • 2-piece handicap: the rook and the bishop.
  • 4-piece handicap: the rook, the bishop, and both lances.
  • 6-piece handicap: the rook, the bishop, and both lances and knights.
  • 8-piece handicap: the rook, the bishop, and both lances, knights, and silvers.
  • 10-piece handicap: the rook, the bishop, and both lances, knights, silvers, and golds. Only the king and 9 pawns remain.
The 10 handicaps (Uwate’s 3 ranks, seen from Shitate. The squares of removed pieces are empty)

The FAQ of the Japan Shogi Association gives the handicaps used at the dojo of the Shogi Kaikan in Tokyo: a lance handicap for a difference of 2 ranks, a rook handicap for 4 ranks, and a 2-piece handicap for 6–7 ranks. In the past, it was normal to play with a handicap based on the difference in rank, but all official professional games today are even games.[6][8]

On this page, you can choose the handicap before the game. Against the computer, the Easy, Medium, and Hard buttons make you Shitate, and “Play as Uwate · Medium” makes you Uwate. In games with a friend, the player who creates the room is Shitate, and the player who joins is Uwate. When a handicap game ends and you start the next one, Uwate and Shitate stay the same (in even games with a friend, Sente and Gote are swapped).

Controls on this page

Starting a game

In the panel to the right of the 3D view (below it on narrow screens), first choose an even game or a handicap, then choose how to play. With the Easy, Medium, and Hard buttons under “Play vs computer”, you play as Sente in an even game and as Shitate in a handicap game. To play as Gote (or Uwate), press “Play as Gote · Medium” below them (“Play as Uwate · Medium” in a handicap game). With “2 players on this device”, 2 players take turns as Sente and Gote on 1 device. There is no time control and no way to offer a draw.

Press “Play a friend (send a link)” to create a room and show its link. Send it to your opponent with “Copy link” (or “Share” on devices that support it). The game starts when your opponent opens the link and presses “Join”. In an even game, the player who creates the room is Sente, and the player who joins is Gote. In a handicap game, the player who creates the room is Shitate, and the player who joins is Uwate.

After an even game ends, press “Rematch (swap Sente and Gote)” to start the next game. If your opponent stays disconnected for 2 minutes, you can press “Continue vs computer” to keep playing against the computer. A room is deleted 30 minutes after everyone disconnects, or 24 hours after it was created.

Moving pieces

On your turn, press the piece you want to move to select it, then press the destination square. With a mouse or touch, press each one once. The selected piece gets a frame, and the squares it can move to are marked. To drop a piece from your hand, press the piece on your piece stand, then press the square to drop it on.

When a move can promote, the “Promote” and “Don’t promote” buttons appear, so press one of them. A move to a square from which the piece could not move again unpromoted is only allowed with promotion. If you press a square that would make a foul, the page shows the reason the move is not allowed, such as nifu or uchifuzume.

Drag to rotate the view. Use the mouse wheel or pinch to zoom in and out. By default the board is shown from straight above, and you can switch the view with “Angled” and “Top-down” in the top right of the 3D view. When you play as Gote or Uwate, the board is turned so that your pieces are on the near side.

You can also play in the “Button controls” panel. Its buttons show the squares in the same layout as the 3D board, along with the pieces in hand, and work the same way as the 3D board. With a keyboard, use the arrow keys to choose a square and Enter to confirm. On devices that cannot show 3D, you can play with this panel alone.

Against the computer and when 2 players take turns on this device, you can take back moves with “Undo move”. Against the computer, it takes back the computer’s move and yours together, returning to your turn. You cannot take back moves in games with a friend. “Play again” starts a new game with the same settings, and “Resign” admits defeat and ends the game.

Copying the game record

Use “Copy KIF” or “Copy SFEN” on the result card or in the “Button controls” panel to copy the record of the game. There are 2 formats: KIF is a game record format that many shogi programs can read, and SFEN describes a position in a single line of text. You can paste a copied record into another shogi program to replay the game. This page cannot load game records.

Computer levels

The computer has 3 levels: Easy, Medium, and Hard. On Easy, it reads only a few moves ahead and sometimes chooses a move that is not the best. On Medium, it reads several moves ahead. On Hard, it reads for up to a fixed time limit on each move. The computer’s moves are calculated in the browser on your device.

The computer on this page is a search program made for this site. It is not as strong as the shogi programs that beat professional players, and even on Hard it can miss a long sequence leading to checkmate. Its strength against people has not been measured, so it is not given a dan or kyu rank.

Strategy tips

  • In the opening, move your king 2 or 3 squares to the side away from your rook, and gather your gold and silver generals near it. A formation in which the king is surrounded by golds and silvers is called a castle. If the fighting starts while your king is still on its starting square, your opponent’s pieces can quickly give check.
  • When exchanging pieces, compare the piece you capture with the piece you lose. The rook and bishop are the most powerful pieces, followed by golds and silvers, then knights and lances, and then pawns. Because captured pieces can be used as pieces in hand, winning 1 piece both takes 1 piece away from your opponent and adds 1 piece to your hand.
  • When the rook and bishop enter the promotion zone and become a dragon and a horse, they gain a 1-square move in addition to their original moves. Advance the pawn in front of your rook to open a path, and look for a chance to enter the promotion zone. When a knight, lance, or silver can enter the promotion zone, it is sometimes better not to promote, so compare how the piece moves before and after promotion before you choose.
  • When trying to checkmate your opponent’s king, first count the squares it can escape to. Chasing the king toward the back ranks of its own camp reduces its escape routes. Giving check from behind the king makes it easier for the king to escape toward the center of the board, so be careful. Dropping a gold from your hand directly in front of the king and driving the king to the edge of the board with a dragon and a gold are common ways to checkmate.
  • When you are in check, compare the 3 ways to stop it: moving the king, capturing the checking piece, and moving or dropping a piece in between. Dropping a piece in between uses up a piece in hand, so when the king can escape, move it toward the side with more room.

Origin and history of shogi

The most widely accepted theory is that shogi comes from chaturanga in ancient India. Chaturanga gave rise to Western chess, xiangqi in China, janggi on the Korean Peninsula, makruk in Thailand, and other games, and Japanese shogi is considered one of them. When and by what route the game reached Japan is not known, because there is little physical evidence.[7]

The oldest known shogi pieces were excavated in 1993 from the grounds of Kofukuji Temple in Nara Prefecture. A wooden tablet found with them bears the date Tenki 6 (1058). The pieces were already pentagonal and included the gyokusho (玉将), kinsho (金将), ginsho (銀将), keima (桂馬), and fuhyo (歩兵). Among written records, the Shin Sarugaku Ki (新猿楽記), also from the 11th century, is considered the oldest to mention shogi.[7]

The Nichureki (二中歴), compiled around the beginning of the 13th century, describes a shogi played with 6 kinds of pieces, the gyokusho, kinsho, ginsho, keima, kyosha (香車), and fuhyo (Heian shogi), and a shogi with more kinds of pieces (Heian dai shogi). Later, variants with more pieces and squares were also played, and shogi is thought to have taken its present form around the 15th to 16th centuries. The rule that captured pieces can be used as pieces in hand is also thought to have begun around this time.[7]

In 1612 (Keicho 17), during the Edo period, the shogunate began paying stipends to shogi players. The title of Meijin was passed down hereditarily among 3 shogi families, and a book of tsume shogi (checkmate problems) that the second Meijin presented to the shogunate was the first to put the rules on fouls in writing. From 1716 (Kyoho 1), oshiro shogi, games played before the shogun, were held every year on November 17. Since 1975 (Showa 50), the Japan Shogi Association has marked this day as Shogi Day.[7]

Sources

  1. Japan Shogi Association, “1.駒の並べ方” [1. Setting up the pieces] (Shogi basics: standard shogi; in Japanese) (opens in a new tab)
  2. Japan Shogi Association, “2.駒の動かし方” [2. How the pieces move] (Shogi basics: standard shogi; in Japanese) (opens in a new tab)
  3. Japan Shogi Association, “3.駒の動きと特徴” [3. Piece moves and features] (Shogi basics: standard shogi; in Japanese) (opens in a new tab)
  4. Japan Shogi Association, “5.反則について” [5. About fouls] (Shogi basics: standard shogi; in Japanese) (opens in a new tab)
  5. Japan Shogi Association, “対局規則” [Game rules] (in Japanese) (opens in a new tab)
  6. Japan Shogi Association, “将棋のルールに関するご質問” [Questions about the rules of shogi] (FAQ; in Japanese) (opens in a new tab)
  7. Japan Shogi Association, “日本将棋の歴史(1)” [History of Japanese shogi (1)] (in Japanese) (opens in a new tab)
  8. Wikipedia (Japanese), “将棋の手合割” [Shogi handicaps] (opens in a new tab)

Frequently asked questions

Is Shogi free to play?

Yes, it’s free. You don’t need to sign up or install an app. Open this page in your browser, and you can start a game against the computer, a game with a friend, or a game with 2 players taking turns on this device.

Can I play on my phone?

Yes. On phones and tablets, you tap a piece and then its destination square, once each. On narrow screens, the panel for choosing how to play and the “Button controls” panel appear below the 3D view. On devices that can’t show 3D, you can play with the “Button controls” panel alone.

How do I play a 2-player game with a friend?

To play a friend who is somewhere else, press “Play a friend (send a link)” and send the link that appears to your friend. The game starts when they open the link and press “Join”. If you’re in the same place, choose “2 players on this device” and take turns on 1 device. Neither way requires signing up.

How strong is the computer?

It has 3 levels, Easy, Medium, and Hard, and Easy is the weakest. The computer on this page is a program made for this site and isn’t as strong as the shogi programs that beat professional players. Its strength against people hasn’t been measured, so it isn’t given a dan or kyu rank. The computer’s moves are calculated in the browser on your device.

Can I take back a move (“Undo move”)?

Yes, against the computer and when 2 players take turns on this device. Press “Undo move” to take back a move. Against the computer, it takes back the computer’s move and yours together, returning to your turn. In games with a friend, you can’t take back moves, because there is no way to get your opponent’s agreement.

What is a handicap game?

It’s a way of playing when 2 players of different strength play each other: the stronger player (Uwate) removes some pieces before the game starts. In handicap games, Uwate moves first. On this page, you can choose from 10 handicaps, from the lance handicap, which removes 1 lance, to the 10-piece handicap, which removes everything except the king and the pawns. If you choose a handicap in a game with a friend, the player who creates the room is Shitate, and Uwate and Shitate don’t swap when you start the next game.

What happens if I make a foul such as nifu or uchifuzume?

On this page, you can’t make moves that are nifu, uchifuzume, moving or dropping a piece where it could never move again, or leaving your king in check. If you try, the page shows the reason the move isn’t allowed. In real games such as tournaments, the player who makes one of these fouls loses at that point.

Sending game statistics

Information such as the start and end of each game, whether connections in games with a friend succeeded, and 3D display failures is sent to this site’s servers. It is used to find out which games are played to the end and on which devices display or connection fails, so that bugs can be fixed and the games improved. To stop sending it, turn off the switch below.

What is sent

Game type, mode (vs computer, pass and play on one device, solo, or with a friend), computer level, your seat in games vs the computer and with a friend (for example, whether you move first or second, or Shitate or Uwate in a Shogi handicap game), game settings (the rules for Gomoku and Checkers, the number of players for Ludo, Chinese Checkers, Daifugo, Sevens, Concentration, Old Maid, Bozu Mekuri and Hyakunin Isshu Karuta, the number of rounds for Daifugo, Sevens and Old Maid, the tokens per player and shorter game rules for Ludo, the draw count and the way the deal is chosen for Klondike Solitaire, the way the deal is chosen for FreeCell, the number of suits and the way the deal is chosen for Spider Solitaire, the board size and the way the game is chosen for 2048, the number of months, the Flower Viewing and Moon Viewing setting, and doubling at 7 points for Hanafuda (Koi-Koi), and the ball speed, whether Relaxed is on, and whether a numbered stage or the daily stage was played for Brick Breaker, the face, blindfold level, number of players, and whether the game was opened from a shared URL for Fukuwarai, and the handicap for Shogi (an even game or which handicap)), result, number of moves, game length range, the screen where a room for a game with a friend was created (the menu, the game result, or “Invite again with a new link”), whether connecting, watching, and taking a seat in games with a friend succeeded and the number of reconnections, 3D display failures and rendering speed range, the time range from opening the page until the 3D display starts (if you leave the page or switch to another tab or app before it starts, that fact and the time range until then), the connection speed range at that time (as estimated by the browser), how much of the page’s program files was loaded from the browser’s cache saved on an earlier visit (all, some, or none), the types of loading failures, device type (whether it is a phone, and memory and CPU core ranges), browser and OS type, and an identifier that is created anew each time you open a page (it is not stored).

What is never sent

Room IDs, seat tokens, moves and board positions (when you clear the daily challenge in Klondike Solitaire, FreeCell, or Spider Solitaire, or finish the daily challenge in 2048, the moves and time are sent to check the result, but they are not recorded after the check), Hit and Blow numbers, GPU model names, and page URLs. IP addresses are only used in memory to limit the number of transmissions, and are not recorded. Data is sent only to this site’s servers and is not given to outside companies. Records are deleted after 30 days (the counts for the daily challenge in Klondike Solitaire, FreeCell, and Spider Solitaire and for the daily challenge in 2048 after 60 days).

How the records are handled, and what ads and analytics send to outside companies, is described in the privacy policy.