boardgameio / boardgame.io

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

Using boardgame.io on a team format. #1164

Open sprguillen opened 10 months ago

sprguillen commented 10 months ago

Hi guys, it's more of a question than an actual issue.

Do we have sample projects that utilize a team format using boardgame.io? How do I setup the game to utilize a team format that's a multiplayer at the same time?

chasen commented 10 months ago

Depends on what you mean by "team format". A couple of things come to mind. the biggest being that you will have to write a custom function to filter Secrete state for each team. You will need to designate a team actor as the one who will take the teams turns, or you can still have everyone on the given team take actions. Thats what phases are for and you can have each person on that team entered into the active players while the other ones wait.

I dont know of any same projects to look at personally. But if you have a specific question happy to try and provide an answer if I can