diff -r b34de5ce7d0e -r c8f2c280cff7 src/chess/rules.h --- a/src/chess/rules.h Wed Aug 29 17:31:36 2018 +0200 +++ b/src/chess/rules.h Tue Sep 18 15:02:08 2018 +0200 @@ -174,12 +174,23 @@ * * Does not work for pawns, scince they don't have a character. * - * @param piece one of ROOK, KNIGHT, BISHOP, QUEEN, KING + * @param piece may have color or additional flags * @return character value for the specified piece */ char getpiecechr(uint8_t piece); /** + * Maps a piece to a unicode character sequence. + * + * The returned unicode is for black pieces. + * You may colorize the output by setting the terminal foreground color. + * + * @param piece the piece to dispaly + * @return unicode character sequence for the specified piece + */ +unsigned char* getpieceunicode(uint8_t piece); + +/** * Checks, if a specified field is covered by a piece of a certain color. * * The out-parameters may both be NULL, but if any of them is set, the other