class Deck{ /** * * @param {*} attributes : array with the attributes index for the cards */ constructor(attributes,nbAttributes){ let attributesRequired=this.attributesRequiredFun(attributes); attributesRequired.forEach(e=>{ for(let i=0;i { this.removeFromRemainingCards(e); }); } } removeFromRemainingCards(selectedCards){//better check of card type more opti let set=[]; for(let i=0; i