@real_one_chess_king/game-logic
Version:
R.O.C.K. chess game logic
21 lines • 548 B
JavaScript
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