From e1cb096bd032e97ecd606d57d0e5629ec1de3e6c Mon Sep 17 00:00:00 2001 From: Matthias Bilger Date: Fri, 12 Mar 2021 18:15:01 +0100 Subject: [PATCH] added late night --- README.md | 73 ++++++++++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 62 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 5ba8be8..90bdae3 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,8 @@ Trying to rebuild [https://github.com/foin137/werwolfonline.eu](https://github.c ```plantuml @startuml(id=overview) +hide empty description + state WaitingForPlayers <> [*] --> WaitingForPlayers: Created WaitingForPlayers --> GameMaster: Creator @@ -28,15 +30,23 @@ WaitingForPlayersEnd --> StartGame StartGame : Assign Player Roles StartGame : Show Introduction -StartGame --> MainPhase : all ready -state MainPhase { - !include https://gitea.d1v3.de/matthias/pywerewolf/raw/branch/master/README.md!DayAndNight +StartGame --> MainPhaseNight : all ready +state MainPhaseNight { + !include https://gitea.d1v3.de/matthias/pywerewolf/raw/branch/master/README.md!TheNight } +MainPhaseNight --> Award: No Villagers left +MainPhaseNight --> MainPhaseDay: Some Villagers left +state MainPhaseDay { + !include https://gitea.d1v3.de/matthias/pywerewolf/raw/branch/master/README.md!TheDay +} +MainPhaseDay --> Award: No Werewolfes left +MainPhaseDay --> MainPhaseNight: Some Werewolfes left @enduml ``` ```plantuml -@startuml(id=DayAndNight) +@startuml(id=TheNight) +hide empty description state NightPhaseCupin <> [*] --> NightPhaseCupin: Game has Cupin [*] --> NightPhaseMain: no Cupin @@ -61,24 +71,41 @@ NightPhaseLovedOnesEnd --> NightPhaseMain : all ready state NightPhaseMain { !include https://gitea.d1v3.de/matthias/pywerewolf/raw/branch/master/README.md!NightPhaseMain } +NightPhaseMain --> NightPhaseLate : Witch/Leaderwolf &&\nvoted &&\nactions done and all ready +state NightPhaseLate { + !include https://gitea.d1v3.de/matthias/pywerewolf/raw/branch/master/README.md!NightPhaseLate +} +NightPhaseMain --> [*]: no Witch/Leaderwolf &&\nvoted &&\nactions done and all ready +NightPhaseLate --> [*]: actions taken +@enduml +``` -NightPhaseMain --> NightPhaseLate : Witch/Leaderwolf && voted && actions done and all ready -NightPhaseLate: LeaderWolf selects victim to convert -NightPhaseLate: witch is allowed to select heal/murder - -NightPhaseMain --> ShowDead: no Witch/Leaderwolf && voted && actions done and all ready -NightPhaseLate --> ShowDead: actions taken +```plantuml +@startuml(id=TheDay) +hide empty description +[*] --> ShowDead: Done +ShowDead: Show the Dead of the night +ShowDead --> Election: No Major +Election --> Discussion: Major elected +ShowDead --> Discussion: all ready || major ready +Discussion --> Accuse: time is up / major forwarded +Accuse --> Poll : Accuse ok +Poll --> ShootTheConvict: Poll successfull +Poll --> Voting: Poll unsuccessfull +Voting --> ShootTheConvict: Voting Completed +ShootTheConvict --> [*]: Done @enduml ``` ```plantuml @startuml(id=NightPhaseMain) +hide empty description state NightPhaseMainStart <> [*] --> NightPhaseMainStart NightPhaseMainStart --> SelectVictim: Werewolfes || Spy NightPhaseMainStart --> SelectIdentity: Seer NightPhaseMainStart --> SelectProtectee: Protector -NightPhaseMainStart --> SeeWerewolfes: ParanormalInvestigator && FirstRound* +NightPhaseMainStart --> SeeWerewolfes: ParanormalInvestigator NightPhaseMainStart --> Sleep: Villager @@ -94,6 +121,30 @@ NightPhaseMainEnd --> [*] @enduml ``` +```plantuml +@startuml(id=NightPhaseLate) +hide empty description +state NightPhaseLateStart <> +[*] --> NightPhaseLateStart +state "Witch selects\nHealing or Poison" as SelectHealOrPoison +state "Leaderwolf selects victim\nfor conversion" as SelectLeaderVictim +NightPhaseLateStart --> SelectHealOrPoison: Witch +NightPhaseLateStart --> SelectLeaderVictim: Leaderwolf +NightPhaseLateStart --> SleepAgain: Villager + + + +state NightPhaseLateEnd <> +SelectHealOrPoison --> NightPhaseLateEnd: Selection finished +SelectHealOrPoison -left-> SelectHealOrPoison: Next selection +SelectLeaderVictim --> NightPhaseLateEnd: Done +SleepAgain --> NightPhaseLateEnd + +NightPhaseLateEnd --> [*] + +@enduml +``` +