From 65fa2e2daba84fed9acffea6f479fff62c55cba7 Mon Sep 17 00:00:00 2001 From: Matthias Bilger Date: Fri, 12 Mar 2021 07:00:08 +0100 Subject: [PATCH] split diagram --- README.md | 40 +++++++++++++++++++++++++++++++--------- 1 file changed, 31 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index e1ea344..d1c086d 100644 --- a/README.md +++ b/README.md @@ -6,22 +6,44 @@ Trying to rebuild [https://github.com/foin137/werwolfonline.eu](https://github.c ## Phases of the game ```plantuml -@startuml +@startuml(id=overview) +state WaitingForPlayers <> [*] --> WaitingForPlayers: Created -WaitingForPlayers : Show the game id/link -WaitingForPlayers : Create game in Database -WaitingForPlayers : Allow setting of rules +WaitingForPlayers --> GameMaster: Creator +WaitingForPlayers --> Player: Player -WaitingForPlayers --> StartGame: len(Players)>=len(special roles) && start && num_werewolfes > 1 -WaitingForPlayers --> WaitingForPlayers: start && (len(Players) GameMaster: close Rules +GameMaster -> EditRules: edit rules +state WaitingForPlayersEnd <> + +Player --> WaitingForPlayersEnd: Ready + + +GameMaster --> GameMaster: start &&\nlen(Players)>=len(special roles) &&\nnum_werewolfes > 1 +GameMaster --> WaitingForPlayersEnd: start &&\n(len(Players) StartGame StartGame : Assign Player Roles StartGame : Show Introduction state GameHasCupin <> state NightPhaseCupin <> -StartGame --> GameHasCupin : all ready -GameHasCupin --> NightPhaseCupin: Game has Cupin -GameHasCupin --> NightPhaseMain: no Cupin + + +StartGame --> MainPhase : all ready +state MainPhase { + !include https://gitea.d1v3.de/matthias/pywerewolf/raw/branch/master/README.md!DayAndNight +} +@enduml +``` + +```plantuml +@startuml(id=DayAndNight) +state NightPhaseCupin <> +[*] --> NightPhaseCupin: Game has Cupin +[*] --> NightPhaseMain: no Cupin NightPhaseMain : Werewolfes awake & select (vote) their victim NightPhaseMain : Seer/Spy/Protector/ParanormalInvestigator awaken & access feat NightPhaseMain : sleep & confirm