UNPKG

@real_one_chess_king/game-logic

Version:
25 lines 505 B
"use strict"; 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