Compare commits

...

1 Commits

Author SHA1 Message Date
4c1d8b7206 removed player states from main statemachine 2021-03-14 08:56:14 +01:00

View File

@@ -9,24 +9,10 @@ Trying to rebuild [https://github.com/foin137/werwolfonline.eu](https://github.c
@startuml(id=overview)
hide empty description
state WaitingForPlayers <<fork>>
state WaitingForPlayers
[*] --> WaitingForPlayers: Created
WaitingForPlayers --> GameMaster: Creator
WaitingForPlayers --> Player: Player
GameMaster : Show the game id/link
WaitingForPlayers : Create game in Database
EditRules -> GameMaster: close Rules
GameMaster -> EditRules: edit rules
state WaitingForPlayersEnd <<join>>
Player --> WaitingForPlayersEnd: Ready
GameMaster --> GameMaster: start &&\nlen(Players)>=len(special roles) &&\nnum_werewolfes > 1
GameMaster --> WaitingForPlayersEnd: start &&\n(len(Players)<len(special roles) ||\n num_werewolfes < 1)
WaitingForPlayersEnd --> StartGame
WaitingForPlayers --> StartGame: Start && ready
StartGame : Assign Player Roles
StartGame : Show Introduction