stevegrossi / sengoku

An online Risk-like game built with Elixir and Phoenix LiveView
https://www.playsengoku.com/
59 stars 3 forks source link

Add a Lobby #53

Open stevegrossi opened 4 years ago

stevegrossi commented 4 years ago

Currently, the only way to add new human players to your game is by sharing the URL with a friend. But we could implement a lobby listing open games where random people could join. I'm imagining:

Alternatively, we could use a separate :game_lobby registry and avoid the metadata juggling: only add public games to that registry and unregister them once they start and cannot be joined. This seems simpler, and I see no downside to two overlapping registries. 🤔

Prerequisites

Thinking about this more, there may be a need for some foundational features to support opening the game up to random people: