how to support multiple players?
Closed this issue · 2 comments
can i use this engine to support multiple players?
TL;DR: not now. @bboyazeal the life circle in the engine is not considering multiple players. Right now it assumes only one player against the dealer.
but
it is certain possible to make it work with more than one player by adding 2 key features:
- while the stage is
READY
we can allow action likeJOIN_TABLE
. This will populate anarray
of available players before to start the life circle. - scale the current
available_actions
by adding the concept ofpending players
before dispatching theSHOWDOWN
The main issue is still the coordination (clock
), but that will remains a task for the server.
conclusion
I'm not interested in changing this project to become multi-player but, in a separate project, if you have time, I can probably participate in the development of the components to make a multiplayer blackjack server.
thank you very much for your reply. And your advises.
And i will try to make this engine to become multi-player by myself first. if it works i will share the project in github.