A Game Courier Preset for Janggi
Rules of Janggi [장기] (Korean Chess)
Start
Before regular play begins, each player may transpose the positions of adjacent Elephants and Horses on either or both sides. So, on the first turn, each player must pass or adjust the positions of these pieces. This may be done with the mouse by moving a Horse or Elephant to the space of another Horse or Elephant. If the pieces are of the same type, the move is passed without any changes to the setup. If the pieces are adjacent to each other, they switch places. If they are on opposite sides of the General, both pairs will swap positions, so that the Elephants go between the Rooks and Horses. To allow each player the option to reposition these pieces, regular moves cannot be made until the second turn.
Object
You win by checkmating your opponent. There is no stalemate, because a player may pass any turn. (Enter pass as your move when you pass.) Different interpretations of the opposing Generals rule have been offered by different sources. The one enforced here is that if one General faces another across an empty file, and the other General does not immediately move away, the game ends in a draw.
Pieces
Green | Red | |
---|---|---|
The General moves one space along any of the lines in the palace, the X-marked nine-space area at one end of each board. It may not move into check, and it may not leave the palace. | ||
The Councellor moves one space along any of the lines in the palace, the X-marked nine-space area at one end of each board. It may never leave the palace. | ||
The Elephant steps to the opposite end of a 2x3 rectangle by making one orthogonal move, followed by two diagonal moves in the same direction. If any space in its path is blocked, it may not complete its move. | ||
The Horse is a kind of non-jumping Knight. It moves one space orthogonally, followed by one more space diagonally outward. It may complete its move only if its first step takes it over an empty space, and it may not stop on the first step. Without any obstacles, a Horse reaches all the same spaces as a Knight. | ||
The Chariot moves as the Rook, riding along any orthogonal line. Additionally, it may move diagonally along the diagonal lines inside a palace. For this to be possible, the move must begin and end in the palace. | ||
The Cannon moves as a Chariot, except that it must hop over an intervening piece to move. Unlike the Cannon in Chinese Chess, this Cannon must hop over another piece even to move. One Cannon may never hop over another Cannon, which allows one Cannon to block another. Also, a Cannon may not capture another Cannon. Because of these restrictions on how this piece moves and the initial positions of the pieces, no Cannon can move at the beginning of the game. Like the Chariot, it may move diagonally along the diagonal lines inside a palace. | ||
The Pawn moves forward or sideways one space. It may never move backwards. When inside the enemy palace, it may move diagonally down the diagonal lines of the palace. |
Notation and Moving
You may use the mouse to make all your moves. To move a piece from one space to another, click on the piece, then click on the piece's destination.
Game Courier uses a generic form of algebraic notation. Every move may be written as a move from one coordinate to another, using the hyphen to separate the two coordinates, as in "e1-e2". As a courtesy to your opponent, and to allow Game Courier to do some simple error checking on your move, precede the move with the piece label, as in "G e1-e2", which moves the Red General from e1 to e2. Note that Red's pieces are identified by uppercase labels, while Blue's pieces are identified by lowercase labels.
This game allows you to pass moves. To pass a move, enter pass as your move.
To swap Elephants and Horses at the beginning of the game, use the swap command, and enter the spaces in alphabetical order, or just follow the instructions given earlier for doing it with the mouse.
How to Move Pieces
Full Algebraic Notation
Algebraic notation identifies each space by a coordinate that begins with its file label and ends with its rank label. On the Chess board, files go up and down from one player to the other, and ranks go from left to right. In most games, files are represented by letters, and ranks are represented by numbers, but there is no fixed rule requiring this for all games, and some games, such as Shogi, reverse this convention. If you look at the diagram, you will usually see the file labels going from left to right and the file labels going up and down. And if you hover your mouse over a space, you will normally see the name of the coordinate appear in a tooltip.
It is not uncommon to see algebraic notation being used for Chess, but it is often in an abbreviated format that requires you to know both the rules of the game and the current position to know exactly which piece moves where. For example, the notation "Ne6" indicates that a Knight is moving to e6, but it doesn't indicate which Knight, and it doesn't specify where the Knight is coming from. To figure this out, you need to know how a Knight moves and which Knight on the board can make a legal move to e6.
Although rules may be programmed for individual games, Game Courier itself does not know the rules of any game, and it is unable to parse abbreviated algebraic notation. Therefore, it relies on full algebraic notation, which completely specifies the move without requiring any knowledge of the game's rules or the current position. The most usual type of full algebraic notation indicates the piece that is moving by its label, the space it is moving from, and the space it moving to. In Chess, a typical first move might be written as "P e2-e4". When you hover your mouse over a piece, you will normally see the piece label followed by the coordinate for the space, and when you hover it over an empty space, you will normally see the coordinate label. Including the piece label in your notation allows Game Courier to check that the piece you're moving is the right one, and it makes game notation easier to follow, but it is not mandatory.
You may promote a piece by including a promotion move after your regular move. A promotion move has a piece go directly to a coordinate. Here is an example: "p e7-e8; q-e8".
You may remove a piece from a space by adding an @ to the space or by omitting the destination coordinate. For example, both "@-e4" and "e4-" would remove the piece on "e4". This is useful for en passant when you are playing a game that does not handle this automatically. For example, "P d5-e6; e5-" removes the Pawn on e5 after a Pawn moves from d5 to e6.
You will not need to remove spaces for most games, but if you should need to, you can do this by omitting the first coordinate in a move. For example, "-e4" would remove e4 from the board. To add or return a space to the board, you may add an @ or any other piece to it.
Available Pieces
Pieces are represented by labels, usually using uppercase letters for White and lowercase letter for Black. When you enter a move or specify the starting position for a game, you should remember that piece labels are case-sensitive. Many piece sets are available for use with Game Courier, and this table shows you which pieces belong to the piece set you are currently using.
The inclusion of a piece does not indicate that it is used in the game you are playing. But if your game uses pieces not included here, you should choose a different piece set.
Credits
Game Courier was created, programmed and written by Fergus Duniho.
Game Courier, Copyright © Fergus Duniho, 2001-2017
WWW Page Created: 15 August 2001