1.1 --- a/src/chess/rules.c Wed Aug 29 17:31:36 2018 +0200 1.2 +++ b/src/chess/rules.c Tue Sep 18 15:02:08 2018 +0200 1.3 @@ -204,6 +204,18 @@ 1.4 } 1.5 } 1.6 1.7 +unsigned char* getpieceunicode(uint8_t piece) { 1.8 + switch (piece & PIECE_MASK) { 1.9 + case PAWN: return "\u265f"; 1.10 + case ROOK: return "\u265c"; 1.11 + case KNIGHT: return "\u265e"; 1.12 + case BISHOP: return "\u265d"; 1.13 + case QUEEN: return "\u265b"; 1.14 + case KING: return "\u265a"; 1.15 + default: return ""; 1.16 + } 1.17 +} 1.18 + 1.19 uint8_t getpiece(char c) { 1.20 switch (c) { 1.21 case 'R': return ROOK;