kevin-shannon / connect4

The original vertical four in a line game.
12 stars 3 forks source link

Bring back support for external matchmaking #28

Closed tannerkrewson closed 4 years ago

tannerkrewson commented 4 years ago

We had this feature before the bootstrap redesign for use in Lansite matchmaking, but it was removed in favor of game codes. Since then, we got rid of game codes in favor of url copying. I had tannerkrewson/connect4lansite set up with an old version of connect4 just for lansite, but it doesn't work anymore, as per https://github.com/tannerkrewson/lansite/issues/1

This pr adds a way of "hosting" an online game without clicking the button in the menu. It adds url kevinshannon.dev/connect4?createid=RANDOMIDHERE which can be joined with kevinshannon.dev/connect4?joinid=RANDOMIDHERE. The url copying box is hidden in this mode.

Hosting and joining via the main menu is unaffected.