boardgameio / boardgame.io

State Management and Multiplayer Networking for Turn-Based Games
https://boardgame.io
MIT License
10.03k stars 708 forks source link

Q: can this be used to implement a game like bughouse #32

Closed mallochine closed 6 years ago

mallochine commented 6 years ago

Just a question. EOM.

nicolodavis commented 6 years ago

Are turns in bughouse made in a certain order?

mallochine commented 6 years ago

bughouse is two-board chess, 4-player game.

saeidalidadi commented 6 years ago

@mallochine Yes, if the game is a turn based. it means that while one is playing others are waiting.

nicolodavis commented 6 years ago

The current turn model is a round-robin, which works for many games, but not all. If players in bughouse can take a turn "whenever they are ready", without following a particular order, the current library as it stands will not support this use-case well.

We have plans to make the turn model extensible, so game authors can plug their own logic to how the turn passes between players, so games that require unnatural orders can also be supported.

mallochine commented 6 years ago

well it's like 2 parallel games of chess.

nicolodavis commented 6 years ago

@mallochine FYI, you can implement this pretty easily after v0.16.

mallochine commented 6 years ago

can you quickly tell me how? Anything I can read?

nicolodavis commented 6 years ago

http://boardgame.io/#/phases should have everything you want to know. Feel free to ask here too if you have any questions.