Closed Legomenon-gh closed 3 years ago
I'm not wed to having both flip and roll available and can delete one of the two if that's necessary (I'd have put the coin flip behavior as the !roll
default if rolling a coin made sense in English).
Obviously recreating a Random instance every time isn't cryptographically secure, but that's not a problem here (map selection does the same thing).
This allows to support randomizing outcomes within a game for tournament support, this is likely a temporary solution until bot support is available within a game lobby.
Addresses https://github.com/ZeroK-RTS/Zero-K-Infrastructure/issues/2805