-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuser flow.txt
13 lines (11 loc) · 900 Bytes
/
user flow.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
1. the user types command '/create 2 20' where 2 is the starting number and 20 is the ending number
2. the bot displays two buttons to join the game, 1 is join and the other is cancel(the person who initializes the game is the game creator)
3. the join button takes the person to a private chat and the game creator makes a guess, the bot then sends a message in the group chat in this format ` username has made a guess `
4. the second player types command '/guess odd(or even)', if the game creator's guess is correct, they win the round, if not, player 1 wins the round.
5. The bot announces the winner and resets the game for a new round
things to store in db
chosen number
guesses made by game creator and game
outcome of each round
if a person tries to create a new game when inScene is true, it returns
an error, but if a person tries to create a new game when a scene is undefined(hasn't b)