[Piece] Implement == operator
This commit is contained in:
@@ -46,9 +46,7 @@ PieceType Piece::type() const {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool operator==(const Piece &lhs, const Piece &rhs) {
|
bool operator==(const Piece &lhs, const Piece &rhs) {
|
||||||
(void) lhs;
|
return lhs.color() == lhs.color() && lhs.type() == rhs.type();
|
||||||
(void) rhs;
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
std::ostream &operator<<(std::ostream &os, const Piece &piece) {
|
std::ostream &operator<<(std::ostream &os, const Piece &piece) {
|
||||||
|
Reference in New Issue
Block a user