diff --git a/README.md b/README.md index 5ba8be8..520c45d 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 +state MainPhaseDay { + !include https://gitea.d1v3.de/matthias/pywerewolf/raw/branch/master/README.md!TheDay +} +MainPhaseDay --> Award: No Werewolfes left +MainPhaseDay --> MainPhaseNight @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 +Poll --> ShootTheWolf: Poll successfull +Poll --> Voting: Poll unsuccessfull +Voting --> ShootTheWolf +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 +``` +