Difference between revisions of "Jeiqi notation"

From Chessprogramming wiki
Jump to: navigation, search
(Created page with "'''Home * Games * Chinese Chess * Jeiqi * Jeiqi notation’’’ '''Jeiqi notation''' ('''FEN''') is the set of various abbreviator notational sy...")
 
Line 5: Line 5:
 
=Names & notations=
 
=Names & notations=
 
* Jeiqi piece: a dark/unseen/covered piece
 
* Jeiqi piece: a dark/unseen/covered piece
* Reveal move/revelation: a move of a Jeiqi piece. A Jeiqi piece should do the first move as the original piece in which it is located. After the first move it will be revealed / uncovered to show its real material
+
* Reveal move/revelation: a move of a Jeiqi piece. A Jeiqi piece should do the first move as the original piece in which it is located. After the first move, it will be revealed/uncovered to show its real material
 
* Piece names and abbreviations:
 
* Piece names and abbreviations:
 
King / k
 
King / k
Line 21: Line 21:
 
=[[FEN]]=
 
=[[FEN]]=
  
It is similar to standard of FEN with some extra information about captures since that information is very important to guess to which piece a dark piece could be revealed.  
+
It is similar to the standard of FEN with some extra information about captures since that information is very important to guess to which piece a dark piece could be revealed.  
  
 
Standard FEN has 6 fields as below:
 
Standard FEN has 6 fields as below:
  
 
1) Piece placement: there are two parts
 
1) Piece placement: there are two parts
a) piece placement: similar to ches. Use x/X for dark pieces. For example,  
+
a) piece placement: similar to chess. Use x/X for dark pieces. For example,  
b) captured pieces: all revealed captured pieces and their numbers, enclosed by brackets []. This part appears immediately after the first part, without any space. Pieces with no capture are ignores. Jeiqi pieces are not compulsory since we can calculate them from the board and revealed captures. That can make the FEN string a bit shorter, avoid redundancy and inconsistent data, avoid ugly using 2 digit numbers (jeiqi pieces could be 15 - two digit number). Empty brackets could be omitted too. Pieces can be placed in any order. For being beautiful, it is suggested to list all white pieces first, descending by piece values. For examples,
+
b) captured pieces: all revealed captured pieces and their numbers, enclosed by brackets []. This part appears immediately after the first part, without any space. Pieces with no capture are ignored. Jeiqi pieces are not compulsory since we can calculate them from the board and revealed captures. That can make the FEN string a bit shorter, avoid redundancy and inconsistent data, avoid ugly using 2 digit numbers (Jeiqi pieces could be 15 - two-digit numbers). Empty brackets could be omitted too. Pieces can be placed in any order. For being beautiful, it is suggested to list all-white pieces first, descending by piece values. For examples,
  
 
Example of a capturing record:
 
Example of a capturing record:
 
[C1H2P3r1p3]: white loses 1 Cannon, 2 Horses, 3 Pawns, 1, black loses 1 Rook, 3 Pawns
 
[C1H2P3r1p3]: white loses 1 Cannon, 2 Horses, 3 Pawns, 1, black loses 1 Rook, 3 Pawns
  
2) Active colour: similar to chess, w for white, b for black
+
2) Active color: similar to chess, w for white, b for black
  
 
3) Castling availability: ignore. Use ‘-’ instead
 
3) Castling availability: ignore. Use ‘-’ instead
Line 40: Line 40:
 
5) Halfmove clock: similar to chess. This is the number of halfmoves since the last capture or pawn advance
 
5) Halfmove clock: similar to chess. This is the number of halfmoves since the last capture or pawn advance
  
6) Fullmove number: similar to chess. The number of the full moves. It starts at 1, and is incremented after Black's move
+
6) Fullmove number: similar to chess. The number of the full moves. It starts at 1 and is incremented after Black's move
  
  
Line 52: Line 52:
  
 
=Move notations=
 
=Move notations=
It is similar to [[Xiangqi]] about pieces, moves notations and to chess about promotions for revelation.
+
It is similar to [[Xiangqi]] about pieces, moves notations, and to chess about promotions for revelation.
 
   
 
   
 
==Algebraic Notation==
 
==Algebraic Notation==
Basically it is similar to [[Xiangqi]]move notations. Columns are named from a to i, rows from 0 to 9. For a move of a Jeiqi piece we notate it as its original piece and use promotion notation for the revelation.
+
Basically, it is similar to [[Xiangqi]]move notations. Columns are named from a to i, rows from 0 to 9. For a move of a Jeiqi piece, we notate it as its original piece and use promotion notation for the revelation.
  
Bellow is a revelation move when a dark piece in original Pawn position i3 pushed to i4 and revealed into an Horse, Rook on i5 moves to d5, dark Horse in b0 moves to c2 and revealed to a Pawn:
+
Bellow is a revelation move when a dark piece in original Pawn position i3 pushed to i4 and revealed into a Horse, Rook on i5 moves to d5, dark Horse in b0 moves to c2 and revealed to a Pawn:
  
 
Long algebraic notion (LAN):
 
Long algebraic notion (LAN):
Line 71: Line 71:
  
 
==Traditional Notation==
 
==Traditional Notation==
The traditional move notation uses column number by side as image. We can use them as Xiangqi with some notes:
+
The traditional move notation uses column number by side as an image. We can use them as Xiangqi with some notes:
 
* revealing move uses promotional symbol: P1+1=h
 
* revealing move uses promotional symbol: P1+1=h
* Don’t count dark pieces with revealed pieces of same types for solving ambitious cases. The dark and revealed pieces can be easily distinguished by revealing symbol
+
* Don’t count dark pieces with revealed pieces of the same types for solving ambitious cases. The dark and revealed pieces can be easily distinguished by revealing symbol
* For example, in above board even there are two black Rooks in column 9, their moves can not be ambiguous since r9.1 is definitely by revealed Rook and r9.1=c is definitely by dark one.
+
* For example, even there are two black Rooks in column 9, their moves can not be ambiguous since r9.1 is definitely by revealed Rook and r9.1=c is definitely by the dark one.
  
  
Line 89: Line 89:
 
UCI_Variant var xiangqi var jeiqi
 
UCI_Variant var xiangqi var jeiqi
  
bestmove: as typical but it could not have revelational piece even the moving piece is a dark one. Reason: the engine cannot decides that piece:
+
bestmove: as typical but it could not have a revelational piece even the moving piece is a dark one. Reason: the engine cannot decide that piece:
 
bestmove a3a4
 
bestmove a3a4
  
  
 
==Send from chess GUI==
 
==Send from chess GUI==
GUI should adds revelational pieces to dark moves:
+
GUI should add revelational pieces to dark moves:
  
Example:
+
'''Example:'''
 
position startpos moves e3e4e b9c7c h2h7r i9h9p e4g2
 
position startpos moves e3e4e b9c7c h2h7r i9h9p e4g2
  

Revision as of 03:58, 12 August 2021

Home * Games * Chinese Chess * Jeiqi * Jeiqi notation’’’

Jeiqi notation (FEN) is the set of various abbreviator notational systems used to describe the Jeiqi position or moves in a Jeiqi game record.

Names & notations

  • Jeiqi piece: a dark/unseen/covered piece
  • Reveal move/revelation: a move of a Jeiqi piece. A Jeiqi piece should do the first move as the original piece in which it is located. After the first move, it will be revealed/uncovered to show its real material
  • Piece names and abbreviations:

King / k Advisor / a Elephant / e Rook / r Cannon / c Horse / h Pawn / p Jeiqi / x

White / w Black / b

FEN

It is similar to the standard of FEN with some extra information about captures since that information is very important to guess to which piece a dark piece could be revealed.

Standard FEN has 6 fields as below:

1) Piece placement: there are two parts a) piece placement: similar to chess. Use x/X for dark pieces. For example, b) captured pieces: all revealed captured pieces and their numbers, enclosed by brackets []. This part appears immediately after the first part, without any space. Pieces with no capture are ignored. Jeiqi pieces are not compulsory since we can calculate them from the board and revealed captures. That can make the FEN string a bit shorter, avoid redundancy and inconsistent data, avoid ugly using 2 digit numbers (Jeiqi pieces could be 15 - two-digit numbers). Empty brackets could be omitted too. Pieces can be placed in any order. For being beautiful, it is suggested to list all-white pieces first, descending by piece values. For examples,

Example of a capturing record: [C1H2P3r1p3]: white loses 1 Cannon, 2 Horses, 3 Pawns, 1, black loses 1 Rook, 3 Pawns

2) Active color: similar to chess, w for white, b for black

3) Castling availability: ignore. Use ‘-’ instead

4) En passant: ignore. Use ‘-’ instead

5) Halfmove clock: similar to chess. This is the number of halfmoves since the last capture or pawn advance

6) Fullmove number: similar to chess. The number of the full moves. It starts at 1 and is incremented after Black's move


Examples: Starting position, empty brackets are totally omitted: xxxxkxxxx/9/1x5x1/x1x1x1x1x/9/9/X1X1X1X1X/1X5X1/9/XXXXKXXXX w - - 0 1

Captured Jeiqi pieces (X7) are counted even that is not compulsory. 2e6/4k4/9/2Ha1P2p/2a2P3/9/3p5/4E4/e8/2X1K4[R1C1P1X7r1h1p1d6] w - 3 55


Move notations

It is similar to Xiangqi about pieces, moves notations, and to chess about promotions for revelation.

Algebraic Notation

Basically, it is similar to Xiangqimove notations. Columns are named from a to i, rows from 0 to 9. For a move of a Jeiqi piece, we notate it as its original piece and use promotion notation for the revelation.

Bellow is a revelation move when a dark piece in original Pawn position i3 pushed to i4 and revealed into a Horse, Rook on i5 moves to d5, dark Horse in b0 moves to c2 and revealed to a Pawn:

Long algebraic notion (LAN):

1) i3i4=h i5d5 2) b0c2=p

Short algebraic notion (SAN): 1) i4=h rc7 2) Hc2=p

Coordinate notation: i3i4h i5d5 b0c2p


Traditional Notation

The traditional move notation uses column number by side as an image. We can use them as Xiangqi with some notes:

  • revealing move uses promotional symbol: P1+1=h
  • Don’t count dark pieces with revealed pieces of the same types for solving ambitious cases. The dark and revealed pieces can be easily distinguished by revealing symbol
  • For example, even there are two black Rooks in column 9, their moves can not be ambiguous since r9.1 is definitely by revealed Rook and r9.1=c is definitely by the dark one.


PGN

Use Jeiqi as the variant name: [Variant “Jeiqi”]

UCI

Send from engine

Inform the engine can play Jeiqi variant:

UCI_Variant var jeiqi UCI_Variant var xiangqi var jeiqi

bestmove: as typical but it could not have a revelational piece even the moving piece is a dark one. Reason: the engine cannot decide that piece: bestmove a3a4


Send from chess GUI

GUI should add revelational pieces to dark moves:

Example: position startpos moves e3e4e b9c7c h2h7r i9h9p e4g2

Forum Posts

2015 ...

External Links

Chinese Chess

References


Up one Level