card, factory working, remain deck
continuous-integration/drone/push Build is passing Details

pull/88/head
Bastien JACQUELIN 2 years ago
parent 822b1edeba
commit 6a06222449

@ -21,6 +21,7 @@ console.groupEnd();
console.group('Factory'); console.group('Factory');
console.log('Passed')
let fact3=new Factory([0,1,2]); let fact3=new Factory([0,1,2]);
let fact4=new Factory([0,1,2,3]); let fact4=new Factory([0,1,2,3]);
let fact5=new Factory([0,1,2,3,4]); let fact5=new Factory([0,1,2,3,4]);

@ -1,11 +1,11 @@
class Factory{ class Factory{
constructor(arrayOfAttributes){ constructor(arrayOfAttributes){
this.dicoAttributes=this.attributesDictionnary(arrayOfAttributes,this.funArrayOfAttributes(arrayOfAttributes)); this.dicoAttributes=this.attributesDictionnary(arrayOfAttributes,this.funArrayOfAttributes(arrayOfAttributes));
console.log("arrayOfAttributes",this.funArrayOfAttributes(arrayOfAttributes));
console.log("attributesDictionnary",this.dicoAttributes)
console.log("attributesName",this.attributesName(this.dicoAttributes));
this.product=this.concreteCardCreation(arrayOfAttributes); this.product=this.concreteCardCreation(arrayOfAttributes);
console.log("allCards",this.product); //console.log("arrayOfAttributes",this.funArrayOfAttributes(arrayOfAttributes));
//console.log("attributesDictionnary",this.dicoAttributes)
//console.log("attributesName",this.attributesName(this.dicoAttributes));
//console.log("allCards",this.product);
} }
/** /**

Loading…
Cancel
Save