13 lines
226 B
JavaScript
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];
|
|
}
|
|
}
|