From 1741a1ab9f8ecfc08e347269d7aec31431b35e0c 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 | 62 ++++++++++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 52 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 5ba8be8..e7148a0 100644 --- a/README.md +++ b/README.md @@ -28,15 +28,22 @@ 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) state NightPhaseCupin <> [*] --> NightPhaseCupin: Game has Cupin [*] --> NightPhaseMain: no Cupin @@ -61,13 +68,28 @@ 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) +[*] --> 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 --> ShootTheWolf: Poll successfull +Poll --> Voting: Poll unsuccessfull +Voting --> ShootTheWolf: Voting Completed +ShootTheWolf --> [*]: Done @enduml ``` @@ -94,6 +116,26 @@ NightPhaseMainEnd --> [*] @enduml ``` +```plantuml +@startuml(id=NightPhaseLate) +state NightPhaseLateStart <> +[*] --> NightPhaseLateStart +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 +``` +