|
|
|
@ -197,6 +197,49 @@ class Deck {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}elseif ($changes === 'dealHS1') {
|
|
|
|
|
$colors = array('green', 'red', 'purple');
|
|
|
|
|
$shapes = array('oval', 'diamond', 'wave');
|
|
|
|
|
$fills = array('solid', 'stripped', 'open');
|
|
|
|
|
$borders = array('plein', 'point', 'rond');
|
|
|
|
|
$numbers = array(1, 2, 3);
|
|
|
|
|
|
|
|
|
|
$index1 = 1;
|
|
|
|
|
|
|
|
|
|
foreach ($colors as $color) {
|
|
|
|
|
foreach ($shapes as $shape) {
|
|
|
|
|
foreach ($fills as $fill) {
|
|
|
|
|
foreach ($borders as $border) {
|
|
|
|
|
foreach ($numbers as $number) {
|
|
|
|
|
$cardAttributes = new CardAttributes($color, $shape, $fill, $border, $number, $index1);
|
|
|
|
|
$card = new Card($cardAttributes, $this);
|
|
|
|
|
$index1++;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}elseif ($changes === 'dealHS2') {
|
|
|
|
|
$colors = array('green', 'red', 'purple', 'lightblue');
|
|
|
|
|
$shapes = array('oval', 'diamond', 'wave', 'rectangle');
|
|
|
|
|
$fills = array('solid', 'stripped', 'open','quadrillage');
|
|
|
|
|
$numbers = array(1, 2, 3,4);
|
|
|
|
|
$border = 'simple';
|
|
|
|
|
|
|
|
|
|
$index2 = 1;
|
|
|
|
|
|
|
|
|
|
foreach ($colors as $color) {
|
|
|
|
|
foreach ($shapes as $shape) {
|
|
|
|
|
foreach ($fills as $fill) {
|
|
|
|
|
foreach ($numbers as $number) {
|
|
|
|
|
$cardAttributes = new CardAttributes($color, $shape, $fill,$border, $number, $index2);
|
|
|
|
|
$card = new Card($cardAttributes, $this);
|
|
|
|
|
$index2++;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
public function removeSet($cards) {
|
|
|
|
@ -229,4 +272,7 @@ class Deck {
|
|
|
|
|
public function fiveMore() {
|
|
|
|
|
return array_chop($this->cards, 5);
|
|
|
|
|
}
|
|
|
|
|
public function sixMore() {
|
|
|
|
|
return array_chop($this->cards, 6);
|
|
|
|
|
}
|
|
|
|
|
}
|