func checkQueue() error {
	if len(queue) >= numPlayersInAGame {
		party := queue[0:numPlayersInAGame]
		err := startGame(party)
		if err != nil {
			return err
		}
		queue = queue[numPlayersInAGame:]
	}
	return nil
}
// Check if the number of players in the queue is sufficient to start a game
// If so, a request with a group of players is sent to the Dispatcher to start a game
// Complexity will increase in the next iteration
Check if the number of players in the queue is sufficient to start a game
If so, a request with a group of players is sent to the Dispatcher to start a game
Complexity will increase in the next iteration
// Check if the number of players in the queue is sufficient to start a game // If so a request with a group of players is sent to the Dispatcher to start a game // Complexity will increase in the next iteration
func checkQueue() error {
	if len(queue) >= numPlayersInAGame {
		party := queue[0:numPlayersInAGame]
		err := startGame(party)
		if err != nil {
			return err
		}
		queue = queue[numPlayersInAGame:]
	}
	return nil
}
func checkQueue ( ) error { if len ( queue ) >= numPlayersInAGame { party := queue [ 0 : numPlayersInAGame ] err := startGame ( party ) if err != nil { return err } queue = queue [ numPlayersInAGame : ] } return nil }
Check if the number of players in the queue is sufficient to start a game
If so, a request with a group of players is sent to the Dispatcher to start a game
Complexity will increase in the next iteration
Check if the number of players in the queue is sufficient to start a game If so a request with a group of players is sent to the Dispatcher to start a game Complexity will increase in the next iteration