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.
 
 
 

31 lines
418 B

class Cards {
constructor(name, color) {
this._onScreen = false;
this._canPut = false;
this._name = name;
this._color = color;
}
get name() {
return this._name;
}
get canPut() {
return this._canPut;
}
get color() {
return this._color;
}
get onScreen() {
return this._onScreen;
}
}
module.exports = Cards;