diff --git a/TicTacToe/src/robske_110/TTT/Game/Game.php b/TicTacToe/src/robske_110/TTT/Game/Game.php index 171aadb..417cf9c 100644 --- a/TicTacToe/src/robske_110/TTT/Game/Game.php +++ b/TicTacToe/src/robske_110/TTT/Game/Game.php @@ -134,7 +134,7 @@ private function checkForWin(): bool{ return true; } if($this->map[2][0] !== "" && $this->map[2][0] === $this->map[1][1] && $this->map[2][0] === $this->map[0][2]){ #\ - $this->end($this->getPlayerWithSymbol($this->map[0][0])); + $this->end($this->getPlayerWithSymbol($this->map[2][0])); return true; } $isFull = true;