UNPKG

@real_one_chess_king/game-logic

Version:
21 lines 391 B
export 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; } } //# sourceMappingURL=cell.js.map