card-games-typescript
Version:
Card deck and high or low game library built with TypeScript
19 lines (18 loc) • 475 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Player = void 0;
class Player {
constructor(username, credit = 2) {
this.username = username;
this.credit = credit;
this.credit = credit;
this.username = username ? username : 'sun doe';
}
setCredit(newCredit) {
this.credit = newCredit;
}
setUsername(username) {
this.username = username;
}
}
exports.Player = Player;