Skip to content

Instantly share code, notes, and snippets.

@kpolitowicz
Created January 26, 2020 00:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kpolitowicz/f18527bf7ade153f88178548c69c58f8 to your computer and use it in GitHub Desktop.
Save kpolitowicz/f18527bf7ade153f88178548c69c58f8 to your computer and use it in GitHub Desktop.
Game spec
1. Multiplayer “guess the number game”
1. The game has rounds - after each round the winning player is awarded 1 point, the rest of players - no points
1. The game has many rooms
1. 1-6 players can join the game room. Players are assigned seat numbers from 1-6 (randomly).
1. Player can join a room any time, but if they join during a round, they will have to wait until the next round starts
1. Player can join multiple rooms
1. Players can leave a room at any time. If this happens during a round, their seat is emptied. If this happens during their turn, the turn goes to the next player after timeout.
1. The first game round starts at seat #1
1. The next round starts at a seat after the one which started the previous round. 1<2<3<4<5<6<1<…
How the round is played
1. Room chooses a NUMBER 0-1000 at random
1. Room assign the starting seat as current seat
1. The player at the current seat guesses the number. If they don’t make their guess within 15 seconds, they loose turn (go to 6)
1. If the guess is correct, the round ends and that player wins
1. If the guess is incorrect, the room says: “TOO LOW” if the NUMBER is higher than the player’s guess, or “TOO HIGH” if the NUMBER is lower
1. The current seat moves to the next occupied seat and that player is asked for their guess (go to 3).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment