#include "Piece.hpp" #include Piece::Piece(PieceColor color, PieceType type) : _color(color), _type(type) { } Piece::Optional Piece::fromSymbol(char symbol) { (void)symbol; return std::nullopt; } PieceColor Piece::color() const { return _color; } PieceType Piece::type() const { return _type; } bool operator==(const Piece &lhs, const Piece &rhs) { (void) lhs; (void) rhs; return false; } std::ostream &operator<<(std::ostream &os, const Piece &piece) { (void) piece; return os; } PieceColor operator!(PieceColor color) { return static_cast((static_cast(color) + 1) % 2); }