Skip to content

Use GameServerConfig in command line and GameManager #3

@rorygraves

Description

@rorygraves

Inside GameServerConfig there are a number of fields e.g.

  • minPlayersPerGame
  • maxPlayersPerGame
  • maxWaitForPlayersMs

Currently only minPlayersPerGame is used in GameManager and it cannot be configured.
TODO:

  • Add all three parameters to CmdLineParser
  • Update GameManager to use all three parameters.

The idea is that as bots join we wait until there are at least minPlayersPerGame, we then wait for up to maxWaitForPlayersMs milliseconds for maxPlayersPerGame players to register. When either max players have registered or the timeout has occurred we start a game.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions