// // Created by hamac on 18.12.2024. // #include #include class Chesspiece { private: /* fields */ char color; char identifier; std::string position; std::vector positions; /* methods */ virtual std::vector calcAvaibleMoves() {} public: std::string getPosition() { return this->position; }; void setPosition(std::string position) { this->position = position; calcAvaibleMoves(); } char getColor() { return this->color; } void setColor(char color) { this->color = color; } std::vector getPositions() { return this->positions; } };