private function getPlayerWithMoreThanHalfSeeds()
    {
        $seedsToWin = $this->getSeedsNeededToWin();

        if ($this->grid[Awale::PLAYER_0]['attic'] > $seedsToWin) {
            return self::PLAYER_0;
        }

        if ($this->grid[Awale::PLAYER_1]['attic'] > $seedsToWin) {
            return self::PLAYER_1;
        }

        return null;
    }
private function getPlayerWithMoreThanHalfSeeds()
    {
        $seedsToWin = $this->getSeedsNeededToWin();

        if ($this->grid[Awale::PLAYER_0]['attic'] > $seedsToWin) {
            return self::PLAYER_0;
        }

        if ($this->grid[Awale::PLAYER_1]['attic'] > $seedsToWin) {
            return self::PLAYER_1;
        }

        return null;
    }
private function getPlayerWithMoreThanHalfSeeds ( ) { $ seedsToWin = $ this -> getSeedsNeededToWin ( ) ; if ( $ this -> grid [ Awale :: PLAYER_0 ] [ 'attic' ] > $ seedsToWin ) { return self :: PLAYER_0 ; } if ( $ this -> grid [ Awale :: PLAYER_1 ] [ 'attic' ] > $ seedsToWin ) { return self :: PLAYER_1 ; } return null ; }
Check if a player reached the seeds number to win and returns it.
Or return null.

@return int|null
Check if a player reached the seeds number to win and returns it . Or return null .