@real_one_chess_king/game-logic
Version:
R.O.C.K. chess game logic
25 lines • 505 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Cell = void 0;
class Cell {
piece;
constructor(piece) {
this.piece = piece;
}
putPiece(piece) {
this.piece = piece;
}
popPiece() {
const piece = this.piece;
this.piece = undefined;
return piece;
}
isEmpty() {
return !this.piece;
}
getPiece() {
return this.piece;
}
}
exports.Cell = Cell;
//# sourceMappingURL=cell.js.map