Get the next playable game if any

@return \PlaygroundGame\Entity\Game
968509
public function getNextPlayableGame($entry = null)
    {
        $sortedPlayableGames = $this->getPlayableGames($entry);

        return (count($sortedPlayableGames) >= 1)?current($sortedPlayableGames)->getGame():null;
    }
1055652
public function getNextRow()
        {
            if ($this->_next()) {
                $row = $this->getCurrentRow();
                if ($row instanceof Row) {
                    return $row;
                }
                throw new \Exception('This should never happen. Please file a bug report');
            } else {
                return false;
            }
        }
440323
public function bounceAction()
    {
        $availableGames = $this->getGameService()->getAvailableGames($this->user);

        $rssUrl = '';
        $config = $this->getGameService()->getServiceManager()->get('config');
        if (isset($config['rss']['url'])) {
            $rssUrl = $config['rss']['url'];
        }

        $viewModel = $this->buildView($this->game);
        $viewModel->setVariables(array(
                'rssUrl'         => $rssUrl,
                'user'           => $this->user,
                'availableGames' => $availableGames,
            ));

        return $viewModel;
    }
508095
public function next()
    {
        return $this->getParent() !== null ? $this->getParent()->getChildByIndex($this->getIndex() + 1) : null;
    }
659454
public function next() {
		if($this->query === null)
			$this->query();
		return $this->current = $this->query->next();
	}
315541
public function game() : ?Game
    {
        if (!isset($this->info()->titleId)) return null;

        return new Game($this->client, $this->info()->titleId);
    }
1077964
protected function NextChild()
    {
        $item = $this->current;
        $this->current = $this->tree->NextOf($item);
        return $item;
    }
460541
public function nextDataAvailable()
    {
        return ($this->position+1 >= $this->collection->getStartIndex() and
                $this->position+1 <= $this->collection->getEndIndex());
    }
578075
public function next()
    {
        $this->_current = $this->_hydrator->hydrateRow();
        $this->_key++;
        return $this->_current;
    }
916990
public function getNextState()
	{
		if( $this->getIsExecuted() )
			{
				if ( class_exists( $next = $this->getNextStateClass() ) )
				{
					return (new $next );
				}
				else
				{
					throw new ClassNotFoundException;
				}
			}
			else
			{
				return $this;
			}
	}
811906
public function getNextCaller()
    {
        $callStack = $this;

        $next = function() use($callStack, &$next)
        {
            $args = func_get_args();

            $args[] = $next;

            return call_user_func_array(array($callStack, 'next'), $args);
        };

        return $next;
    }
654792
public function getNext()
    {
        if ($this->getPage() != $this->getLastPage()) {
            $next = $this->getPage() + 1;
        } else {
            $next = false;
        }

        return $next;
    }
603629
public function nextTerm()
    {
        while (($termStream = $this->_termsStreamQueue->pop()) !== null) {
            if ($this->_termsStreamQueue->top() === null 
                || $this->_termsStreamQueue->top()->currentTerm()->key() !=                $termStream->currentTerm()->key()
            ) {
                // We got new term
                $this->_lastTerm = $termStream->currentTerm();

                if ($termStream->nextTerm() !== null) {
                    // Put segment back into the priority queue
                    $this->_termsStreamQueue->put($termStream);
                }

                return $this->_lastTerm;
            }

            if ($termStream->nextTerm() !== null) {
                // Put segment back into the priority queue
                $this->_termsStreamQueue->put($termStream);
            }
        }

        // End of stream
        $this->_lastTerm = null;

        return null;
    }
23547
protected function NextItem()
	{
		if ( $this->used ) $this->iterator->next();
		$this->used = true;
		return $this->iterator->current(); // getCurrent();
	}
1166916
public function getPreviousGame($entry = null)
    {
        $currentGame = $this->getNextPlayableGame($entry);
        $previousMissionGame = null;

        foreach ($this->missionGames as $missionGame) {
            if ($missionGame->getGame()->getId() === $currentGame->getId()) {
                return $previousMissionGame;
            }

            $previousMissionGame = $missionGame->getGame();
        }

        return null;
    }
460562
public function play()
    {
        if ($this->getOutcomes() > 0 && $this->getRounds() >= count($this->getOutcomes())) {
            throw new RockPaperScissorsSpockLizardException('The game has already been played. Use getOutcomes() to see the game results!');
        }
        
        if (empty($this->getTotalPlayers())) {
            throw new RockPaperScissorsSpockLizardException('No players have been added to this game');
        }
        
        // if only 1 player has been added, add a computer player
        if ($this->getTotalPlayers() < 2) {
            throw new RockPaperScissorsSpockLizardException('This game requires at least 2 players');
        }
        
        $this->generateMovesForBots();
        $this->determineOutcome();
        
        return $this;
    }
313667
protected function run()
    {
        $isComposed = $this->position > 0;
        if (!$isComposed) {
            // If this analyzer was not called from another analyzer at a
            // specific position, we find the correct position here.
            $this->seek();
            return $this->read(self::class);
        }

        $players = [];
        // The first player in this list will be the "main" co-op player.
        $coopPartners = [];
        for ($i = 0; $i <= 8; $i += 1) {
            $player = $this->readPlayerMeta($i);
            if ($player->humanRaw === 0 || $player->humanRaw === 1) {
                continue;
            }
            $players[] = $player;
            $coopPartners[$player->index][] = $player;
        }

        foreach ($players as $player) {
            $player->setCoopPartners($coopPartners[$player->index]);
        }

        return $players;
    }