Add Piece and Board class

This commit is contained in:
2025-11-27 14:03:17 +08:00
parent 5da6fe579f
commit e4c8325d33
8 changed files with 71 additions and 40 deletions

View File

@@ -1,6 +1,6 @@
#include "Piece.h"
Piece::Piece(PlayerColer color) : m_color(color) {
Piece::Piece(PlayerID ID) : m_owner(ID) {
}
@@ -8,6 +8,6 @@ Piece::~Piece() {
}
PlayerColer Piece::getPlayerColor() const {
return m_color;
PlayerID Piece::getPieceOwner() const {
return m_owner;
}