|
|
@ -20,6 +20,7 @@ class Deck {
|
|
|
|
$colors = array('green', 'red', 'purple');
|
|
|
|
$colors = array('green', 'red', 'purple');
|
|
|
|
$shapes = array('oval', 'diamond', 'wave');
|
|
|
|
$shapes = array('oval', 'diamond', 'wave');
|
|
|
|
$fills = array('solid', 'stripped', 'open');
|
|
|
|
$fills = array('solid', 'stripped', 'open');
|
|
|
|
|
|
|
|
$border = 'simple';
|
|
|
|
$numbers = array(1, 2, 3);
|
|
|
|
$numbers = array(1, 2, 3);
|
|
|
|
|
|
|
|
|
|
|
|
$index = 1;
|
|
|
|
$index = 1;
|
|
|
@ -28,7 +29,7 @@ class Deck {
|
|
|
|
foreach ($shapes as $shape) {
|
|
|
|
foreach ($shapes as $shape) {
|
|
|
|
foreach ($fills as $fill) {
|
|
|
|
foreach ($fills as $fill) {
|
|
|
|
foreach ($numbers as $number) {
|
|
|
|
foreach ($numbers as $number) {
|
|
|
|
$cardAttributes = new CardAttributes($color, $shape, $fill, '', $number, $index);
|
|
|
|
$cardAttributes = new CardAttributes($color, $shape, $fill, $border, $number, $index);
|
|
|
|
$card = new Card($cardAttributes, $this);
|
|
|
|
$card = new Card($cardAttributes, $this);
|
|
|
|
$index++;
|
|
|
|
$index++;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -44,16 +45,16 @@ class Deck {
|
|
|
|
$borders = array('plein', 'point', 'rond');
|
|
|
|
$borders = array('plein', 'point', 'rond');
|
|
|
|
$numbers = array(1, 2, 3);
|
|
|
|
$numbers = array(1, 2, 3);
|
|
|
|
|
|
|
|
|
|
|
|
$index = 1;
|
|
|
|
$index1 = 1;
|
|
|
|
|
|
|
|
|
|
|
|
foreach ($colors as $color) {
|
|
|
|
foreach ($colors as $color) {
|
|
|
|
foreach ($shapes as $shape) {
|
|
|
|
foreach ($shapes as $shape) {
|
|
|
|
foreach ($fills as $fill) {
|
|
|
|
foreach ($fills as $fill) {
|
|
|
|
foreach ($borders as $border) {
|
|
|
|
foreach ($borders as $border) {
|
|
|
|
foreach ($numbers as $number) {
|
|
|
|
foreach ($numbers as $number) {
|
|
|
|
$cardAttributes = new CardAttributes($color, $shape, $fill, $border, $number, $index);
|
|
|
|
$cardAttributes = new CardAttributes($color, $shape, $fill, $border, $number, $index1);
|
|
|
|
$card = new Card($cardAttributes, $this);
|
|
|
|
$card = new Card($cardAttributes, $this);
|
|
|
|
$index++;
|
|
|
|
$index1++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -66,15 +67,15 @@ class Deck {
|
|
|
|
$fills = array('solid', 'stripped', 'open','quadrillage');
|
|
|
|
$fills = array('solid', 'stripped', 'open','quadrillage');
|
|
|
|
$numbers = array(1, 2, 3,4);
|
|
|
|
$numbers = array(1, 2, 3,4);
|
|
|
|
|
|
|
|
|
|
|
|
$index = 1;
|
|
|
|
$index2 = 1;
|
|
|
|
|
|
|
|
|
|
|
|
foreach ($colors as $color) {
|
|
|
|
foreach ($colors as $color) {
|
|
|
|
foreach ($shapes as $shape) {
|
|
|
|
foreach ($shapes as $shape) {
|
|
|
|
foreach ($fills as $fill) {
|
|
|
|
foreach ($fills as $fill) {
|
|
|
|
foreach ($numbers as $number) {
|
|
|
|
foreach ($numbers as $number) {
|
|
|
|
$cardAttributes = new CardAttributes($color, $shape, $fill,'', $number, $index);
|
|
|
|
$cardAttributes = new CardAttributes($color, $shape, $fill,'simple', $number, $index2);
|
|
|
|
$card = new Card($cardAttributes, $this);
|
|
|
|
$card = new Card($cardAttributes, $this);
|
|
|
|
$index++;
|
|
|
|
$index2++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -86,16 +87,16 @@ class Deck {
|
|
|
|
$borders = array ('plein','point','rond','zigzag');
|
|
|
|
$borders = array ('plein','point','rond','zigzag');
|
|
|
|
$numbers = array(1, 2, 3,4);
|
|
|
|
$numbers = array(1, 2, 3,4);
|
|
|
|
|
|
|
|
|
|
|
|
$index = 1;
|
|
|
|
$index3 = 1;
|
|
|
|
|
|
|
|
|
|
|
|
foreach ($colors as $color) {
|
|
|
|
foreach ($colors as $color) {
|
|
|
|
foreach ($shapes as $shape) {
|
|
|
|
foreach ($shapes as $shape) {
|
|
|
|
foreach ($fills as $fill) {
|
|
|
|
foreach ($fills as $fill) {
|
|
|
|
foreach ($borders as $border){
|
|
|
|
foreach ($borders as $border){
|
|
|
|
foreach ($numbers as $number) {
|
|
|
|
foreach ($numbers as $number) {
|
|
|
|
$cardAttributes = new CardAttributes($color, $shape, $fill, $border, $number, $index);
|
|
|
|
$cardAttributes = new CardAttributes($color, $shape, $fill, $border, $number, $index3);
|
|
|
|
$card = new Card($cardAttributes, $this);
|
|
|
|
$card = new Card($cardAttributes, $this);
|
|
|
|
$index++;
|
|
|
|
$index3++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -109,16 +110,16 @@ class Deck {
|
|
|
|
$borders = array('plein', 'point', 'rond', 'zigzag','hachure');
|
|
|
|
$borders = array('plein', 'point', 'rond', 'zigzag','hachure');
|
|
|
|
$numbers = array(1, 2, 3, 4, 5);
|
|
|
|
$numbers = array(1, 2, 3, 4, 5);
|
|
|
|
|
|
|
|
|
|
|
|
$index = 1;
|
|
|
|
$index4 = 1;
|
|
|
|
|
|
|
|
|
|
|
|
foreach ($colors as $color) {
|
|
|
|
foreach ($colors as $color) {
|
|
|
|
foreach ($shapes as $shape) {
|
|
|
|
foreach ($shapes as $shape) {
|
|
|
|
foreach ($fills as $fill) {
|
|
|
|
foreach ($fills as $fill) {
|
|
|
|
foreach ($borders as $border) {
|
|
|
|
foreach ($borders as $border) {
|
|
|
|
foreach ($numbers as $number) {
|
|
|
|
foreach ($numbers as $number) {
|
|
|
|
$cardAttributes = new CardAttributes($color, $shape, $fill, $border,$number, $index);
|
|
|
|
$cardAttributes = new CardAttributes($color, $shape, $fill, $border,$number, $index4);
|
|
|
|
$card = new Card($cardAttributes, $this);
|
|
|
|
$card = new Card($cardAttributes, $this);
|
|
|
|
$index++;
|
|
|
|
$index4++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|