diff --git a/Piece.cpp b/Piece.cpp index 4c501e9..5146b4a 100644 --- a/Piece.cpp +++ b/Piece.cpp @@ -50,7 +50,12 @@ bool operator==(const Piece &lhs, const Piece &rhs) { } std::ostream &operator<<(std::ostream &os, const Piece &piece) { - (void) piece; + int typeNum = static_cast(piece.type()); + if (piece.color() == PieceColor::Black) { + typeNum = std::tolower(typeNum); + } + + os << static_cast(typeNum); return os; }