class Deck{ constructor(nbAttributes){ this.allCards=this.createCards(nbAttributes);// All the cards in the game this.remainingCards=this.allCards;// cards in the stack this.outputCards=[];// 12 cards lay on the table this.setMade=[];// array with all the set already mades (array of set) this.createDeck(); } createDeck(){ for (let i=0; i<12; i++){ const rand = this.getRandCard(); this.outputCards.push(this.remainingCards[rand]); this.remainingCards.splice(rand,1); } } getRandCard(){ const random = Math.floor(Math.random() * this.remainingCards.length); return random; } createCards(nbAttributes){ const tabColor = ['red','purple','green','blue','orange']; const tabShape = ['diamond','oval','wave','star','circle'] const tabFilling = ['empty','stripped','full','pointed','squared']; const tabNumber = [1,2,3,4,5]; const tabOutline = ['full','dotted ','aa','bb','cc']; let tabOfAllCards=[]; for (let c=0; c