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.

16 lines
310 B

  1. class Player {
  2. constructor(name) {
  3. this._name = name;
  4. this._turn = false;
  5. this._canPlay = false
  6. }
  7. get name() {
  8. return this._name;
  9. }
  10. get turn(){
  11. return this._turn;
  12. }
  13. get canPlay(){
  14. return this._canPlay;
  15. }
  16. }
  17. module.exports = Player;