ts-cards
Version:
Cards but in typescript
14 lines (13 loc) • 375 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Card = void 0;
var Card = /** @class */ (function () {
function Card(suit, rank, deck) {
this.suit = suit;
this.rank = rank;
this.description = this.rank.name + " of " + this.suit.name;
this.deck = deck;
}
return Card;
}());
exports.Card = Card;