uno-game-js/src/js/human.js
2021-07-19 22:27:12 +09:00

13 lines
226 B
JavaScript

import Player from './player.js';
export default class Human extends Player {
constructor(name, id) {
super(name, id);
this._type = 'human';
}
playCard(top_card) {
return this._cards.splice(0, 1)[0];
}
}