diff --git a/Piece.cpp b/Piece.cpp index ba0e877..4c501e9 100644 --- a/Piece.cpp +++ b/Piece.cpp @@ -46,9 +46,7 @@ PieceType Piece::type() const { } bool operator==(const Piece &lhs, const Piece &rhs) { - (void) lhs; - (void) rhs; - return false; + return lhs.color() == lhs.color() && lhs.type() == rhs.type(); } std::ostream &operator<<(std::ostream &os, const Piece &piece) {