Skip to content

maxtkc/that-dam-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

that-dam-game

Database:

Table: Users

  • cookie (text, pk)
  • game (integer)
  • player (integer)
  • name (text)

Table: Game

  • key (integer)
  • state (blob/string) -> json formatted, quicktyped?

UI Flow:

EntryView

  • The landing page
  • Text field to enter/create game code
  • On entering value, go to GameView (/<game-code>)

GameView

  • 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

PlayingView (props: PlayingState)

  • 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
Deck (props: Deck)
ThisPlayer (props: PlayerShown)
OtherPlayer (props: PlayerHidden)

WaitingView (props: WaitingState)

  • Lists the other waiting users
  • Start button to stop waiting and start the game

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published