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.

30 lines
418 B

  1. class Cards {
  2. constructor(name, color) {
  3. this._onScreen = false;
  4. this._canPut = false;
  5. this._name = name;
  6. this._color = color;
  7. }
  8. get name() {
  9. return this._name;
  10. }
  11. get canPut() {
  12. return this._canPut;
  13. }
  14. get color() {
  15. return this._color;
  16. }
  17. get onScreen() {
  18. return this._onScreen;
  19. }
  20. }
  21. module.exports = Cards;