src/Game.php
protected function getMove($player = self::PLAYER_X)
    {
        $move = $this->calculateBestMove($player);

        if (!empty($move)) {
            $this->board->setValue($move, $player);
        }

        return $move;
    }
protected function getMove($player = self::PLAYER_X)
    {
        $move = $this->calculateBestMove($player);

        if (!empty($move)) {
            $this->board->setValue($move, $player);
        }

        return $move;
    }
protected function getMove ( $ player = self :: PLAYER_X ) { $ move = $ this -> calculateBestMove ( $ player ) ; if ( ! empty ( $ move ) ) { $ this -> board -> setValue ( $ move , $ player ) ; } return $ move ; }
return recommended value
@param string $player
@return array
return recommended value