We can't find the internet
Attempting to reconnect
Something went wrong!
Hang in there while we get back on track
Managing Players in a Multiplayer Card Game with Elixir
67
clicks
Source: reddit.com
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.
Related posts
© HashMerge 2024