Skip to content

Board game state machine design? Need some help planning #1258

Answered by Andarist
vck3000 asked this question in General
Discussion options

You must be logged in to vote

I am rewriting a game engine for an online board game.

Out of curiosity - what board game? I'm a #bgg 😅 Looks like some variation of Mafia/Werewolf/Avalon?


As to the topic itself - I think your first intuition might be right: make players separate actors and communicate with the game through events.

However, as the child machines aren't supposed to be able to easily share information with their parent before terminating

This is not true - actors (so including parent and its children) are able to communicate through events at any time! So it's perfectly fine to have long-lived player actors and exchange events between them and the game actor during the game.

As to the customizability …

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@vck3000
Comment options

@Andarist
Comment options

@vck3000
Comment options

@vck3000
Comment options

Answer selected by vck3000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants