uno-game-js/src/js/player.js
2021-07-17 11:58:18 +09:00

15 lines
235 B
JavaScript

import Card from './card.js';
export default class Player {
constructor(name) {
this._name = name;
this._cards = [];
}
addCard(card) {
this._cards.push(card);
}
printCards() {
console.log(this._cards);
}
}