Skip to content

Latest commit

 

History

History
17 lines (11 loc) · 353 Bytes

join-logic.md

File metadata and controls

17 lines (11 loc) · 353 Bytes

Join logic:

/join

  • Asks user for pin code
  • If user enters pin code and game available, start game
  • If user enters pin & no game available, changes to "start" page

/join/:pin

  • If no game with pin, create game, join, and redirect to start
  • If game with pin, join and start playing.
  • If game is full redirect to /join

/start

Gives user pin code