You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
310 B
17 lines
310 B
class Player {
|
|
constructor(name) {
|
|
this._name = name;
|
|
this._turn = false;
|
|
this._canPlay = false
|
|
}
|
|
get name() {
|
|
return this._name;
|
|
}
|
|
get turn(){
|
|
return this._turn;
|
|
}
|
|
get canPlay(){
|
|
return this._canPlay;
|
|
}
|
|
}
|
|
module.exports = Player;
|