ZeroK-RTS / Zero-K-Infrastructure

Website, lobby launcher and server, steam deployment, .NET based tools and other vital parts of Zero-K infrastructure
GNU General Public License v3.0
53 stars 52 forks source link

Add CmdFlip and CmdRoll #2806

Closed Legomenon-gh closed 3 years ago

Legomenon-gh commented 3 years ago

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

Legomenon-gh commented 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).