Resume Game
From Worms Knowledge Base
Based on original idea from feedback page.
Ideas for resuming online games
To securely resume a game, public-key cryptography is applied. First, each player has a private key and public, which is randomly generated one-time by W:A.
The game is suspended at the end of a turn, when all players agree to do so. The host would type in the command '/suspend' during a turn, and when the turn's completed, the game would pause. All players would need to agree to suspend the game.
The player's public keys are then shared. Each player sends an encrypted message to the other players, each one receiving a unique message. When a game is about to resume, the players return the messages they received to the other players.
E.g. Players 1-3 exchange public keys, then encrypted messages are sent.
- P1 to P2: Code is 527
- P1 to P3: Code is 167
- P2 to P1: Code is 502
- P2 to P3: Code is 119
- P3 to P1: Code is 293
- P3 to P2: Code is 954
When resuming, the messages are returned to sender.
- P2 to P1: Your code was 527
- P3 to P1: Your code was 167
- P1 to P2: Your code was 502
- P3 to P2: Your code was 119
- P1 to P3: Your code was 293
- P2 to P3: Your code was 954
When the messages are confirmed, the game resumes.