ManagementPresents / word-for-word

don't look at us, we're still disrupting
MIT License
0 stars 0 forks source link

Going to a Match URL of a game that is in-progress or has ended - New Behaviors #59

Open zoetquinn opened 2 years ago

zoetquinn commented 2 years ago

Basically, going to a match URL when it's anything other than your turn should behave a little differently - it should have a context-sensitive open modal based on the match's current status.

For active matches that have not been "claimed" by an opponent:

If you're logged in, and you're the one who made the match:

If you're logged in, but you're not the one who made the match:

For active matches you are already participating in:

If you're logged in, and it's your turn, but you have not yet guessed the word:

If you're logged in, and it's your turn, and you have correctly guessed the word, but you have not entered a word of your own yet:

If you're logged in, and it's not your turn, and your opponent has not yet successfully guessed your word or failed to do so:

If you're logged in and it is not your turn, and your opponent has lost the game:

If you're logged in, it is not your turn, and your opponent has forfeited:

If you're logged in, it is not your turn, and your opponent has guessed your word, but they have not entered a word for you to guess yet

If you're logged in, it is not your turn, and your opponent has guessed your new word, and entered a new word so it has become your turn (but you have not started guessing):

For active matches you are NOT a participant in:

For completed matches:

If you're not logged in:

If you are logged in: