[Piece] Implement == operator

This commit is contained in:
2022-12-18 16:13:35 +01:00
parent 4eb596a9a0
commit 2970fe1406

View File

@@ -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) {