- cookie (text, pk)
- game (integer)
- player (integer)
- name (text)
- key (integer)
- state (blob/string) -> json formatted, quicktyped?
- The landing page
- Text field to enter/create game code
- On entering value, go to GameView (
/<game-code>
)
- Get or create session cookie
- Use cookie to register socket with cookie
- On message (state):
- If the game has started, PlayingView
- If the game has yet to start, WaitingView
- This is the actual game that is being played
- It should have one DeckView, one ThisPlayerView, and an OtherPlayerView for each other player
|-----------------------------------------------------| | OtherPlayerView | OtherPlayerView | OtherPlayerView | | | | DeckView | | |
ThisPlayerView |
---|
OtherPlayer (props: PlayerHidden)
- Lists the other waiting users
- Start button to stop waiting and start the game