Eisfunke / Secret-Hitler-Telegram

A Telegram Bot that allows groups of users to play Secret Hitler
Other
8 stars 3 forks source link

Add /blitzkrieg game mode #70

Open FRQDO opened 5 years ago

FRQDO commented 5 years ago

This command tries to start a game in Blitzkrieg mode, optionally with a specified timeout in minutes. The default value could be set to 5, but maybe also be set on a per-channel basis.

When starting in Blitzkrieg mode, every player in the current lobby receives a message and button to confirm that they’re up for a Blitzkrieg match, and no new players may join. If not all players confirm within the timeout period, the game returns to the classic Lobby mode.

If a game runs in Blitzkrieg mode, every game interaction has a timeout. If the time runs out, the game is canceled, everyone loses, and the players who failed to perform their actions in time get one strike.

Players with three strikes are banned from Blitzkrieg matches. If such a player is in the lobby while the /blitzkrieg command is issued, the bot tries to start the game with just the un-banned players.


Example 1: 6 (un-banned) players in the lobby → Blitzkrieg match can start with 6 players

Example 2: 8 players in the lobby, of which 1 is banned → Blitzkrieg match can start with 7 players

Example 3: 7 players in the lobby, of which 3 are banned → Blitzkrieg match cannot start because there are less than 5 un-banned players in the lobby.

FRQDO commented 5 years ago

Open questions:

Eisfunke commented 5 years ago