Archived
1
0
Fork 0

Minor fixes.

This commit is contained in:
Henrik Hautakoski 2021-11-04 12:14:52 +01:00
parent ddf09fe00c
commit c8b93095dc
7 changed files with 26 additions and 32 deletions

View file

@ -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;
}