// // Created by hamac on 19.12.2024. // #ifndef CHESSPIECE_H #define CHESSPIECE_H // // Created by hamac on 18.12.2024. // #include #include #include class Chesspiece { private: /* fields */ // ToDo: von char auf enum Color {W, B} umstellen char color; char identifier; // P,K,... std::pair position; // std::vector> std::vector avaibleMoves; /* methods */ virtual std::vector calcAvaibleMoves() = 0; public: Chesspiece(char color, std::pair position); virtual ~Chesspiece() = default; std::pair getPosition(); void setPosition(std::pair position); char getColor(); void setColor(char color); std::vector getAvaibleMoves(); bool checkNotation(std::string notation); }; #endif //CHESSPIECE_H