sparshg / battleship

Classic battleship game, two-player, online, deployed.
http://sparshg.dev/battleship/
MIT License
2 stars 5 forks source link

Can't create/join a room on refresh #13

Open sparshg opened 2 days ago

sparshg commented 2 days ago

Steps to reproduce:

  1. Create a room, wait till the code appears (say ABCD)
  2. Reload the page
  3. Create a room again

Room creation fails, probably because the user session to the room ABCD is restored. This isn't indicated on the frontend.

Solutions: Either show that session is restored on the frontend, or leave the room if the game wasn't started.