Web Chinese Chess Board

Position format

Each piece is represented by a hexadecimal digit, then encode the whole number with base64. This application includes a converter that can convert between FEN format and the custom base64 position format.

PieceWhiteBlack
King/General (將/帥)19
Advisor (士/仕)2a
Bishop/Elephant (象/相)3b
Knight/Horse (馬/傌)4c
Rook (車/俥)5d
Cannon (炮/砲/包)6e
Pawn/Soldier (卒/兵)7f

Empty squares are represented by 0.

The starting position encoded into the custom base64 position format is: 3LqavNAAAAAADgAADg8PDw8PAAAAAAAAAAAAcHBwcHBgAABgAAAAAAVDISNF