Minor fixes.
This commit is contained in:
parent
ddf09fe00c
commit
c8b93095dc
7 changed files with 26 additions and 32 deletions
|
|
@ -153,7 +153,7 @@ class GameBoardState
|
|||
/**
|
||||
*
|
||||
*/
|
||||
protected function update()
|
||||
protected function update() : void
|
||||
{
|
||||
foreach($this->state as $pos => $_) {
|
||||
$this->state[$pos] = self::STATE_PRESSED;
|
||||
|
|
@ -207,10 +207,6 @@ class GameBoardState
|
|||
if (!$this->isPressed($pos)) {
|
||||
return [];
|
||||
}
|
||||
/*
|
||||
if ($this->state[$pos] == self::STATE_WIN) {
|
||||
continue;
|
||||
} */
|
||||
$cards[] = $pos;
|
||||
}
|
||||
|
||||
|
|
@ -229,10 +225,6 @@ class GameBoardState
|
|||
if (!$this->isPressed($pos)) {
|
||||
return [];
|
||||
}
|
||||
/*
|
||||
if ($this->state[$pos] == self::STATE_WIN) {
|
||||
continue;
|
||||
} */
|
||||
$cards[] = $pos;
|
||||
}
|
||||
|
||||
|
|
|
|||
Reference in a new issue