Managing Players in a Multiplayer Card Game with Elixir

106
clicks
Managing Players in a Multiplayer Card Game with Elixir
ShoddyStreet677 is developing a multiplayer card game called Callbreak using Elixir and is seeking guidance on managing players who join and leave the game dynamically. They describe the game mechanics and current implementation involving GameSupervisor and GameServer, where all players are bots with one playable from the command line. The challenge is allowing real-life interactions where players join a game, potentially disconnect, and need to be replaced by bots. They ask for suggestions on managing waiting players and handling disconnections, perhaps using terminate callbacks and separate GenServers to store waiting games.

© HashMerge 2024