UNPKG

@real_one_chess_king/game-logic

Version:
21 lines 548 B
export class Piece { type; color; movementRules; postMovementRules; constructor(type, color, movementRules, postMovementRules) { this.type = type; this.color = color; this.movementRules = movementRules; this.postMovementRules = postMovementRules; } getMeta() { return { type: this.type, color: this.color, rules: this.movementRules, postMovementRulesMeta: this.postMovementRules, }; } } //# sourceMappingURL=piece.js.map