ngx-chess-board
Version:
Chess game component
21 lines (18 loc) • 764 B
text/typescript
export interface PieceConstant {
name: string;
icon: string;
}
export const UnicodeConstants = {
WHITE_KING: { name: 'King', icon: '♔' },
WHITE_QUEEN: { name: 'Queen', icon: '♕' },
WHITE_KNIGHT: { name: 'Knight', icon: '♘' },
WHITE_ROOK: { name: 'Rook', icon: '♖' },
WHITE_PAWN: { name: 'Pawn', icon: '♙' },
WHITE_BISHOP: { name: 'Bishop', icon: '♗' },
BLACK_KING: { name: 'King', icon: '♚' },
BLACK_QUEEN: { name: 'Queen', icon: '♛' },
BLACK_KNIGHT: { name: 'Knight', icon: '♞' },
BLACK_ROOK: { name: 'Rook', icon: '♜' },
BLACK_PAWN: { name: 'Pawn', icon: '♟' },
BLACK_BISHOP: { name: 'Bishop', icon: '♝' },
};