Compare commits

...

1 Commits

Author SHA1 Message Date
fa6b2d31d6 added late night 2021-03-12 20:53:02 +01:00

View File

@@ -28,15 +28,22 @@ WaitingForPlayersEnd --> StartGame
StartGame : Assign Player Roles StartGame : Assign Player Roles
StartGame : Show Introduction StartGame : Show Introduction
StartGame --> MainPhase : all ready StartGame --> MainPhaseNight : all ready
state MainPhase { state MainPhaseNight {
!include https://gitea.d1v3.de/matthias/pywerewolf/raw/branch/master/README.md!DayAndNight !include https://gitea.d1v3.de/matthias/pywerewolf/raw/branch/master/README.md!TheNight
} }
NightPhaseMain --> Award: No Villagers left
MainPhaseNight --> MainPhaseDay
state MainPhaseDay {
!include https://gitea.d1v3.de/matthias/pywerewolf/raw/branch/master/README.md!TheDay
}
NightPhaseMain --> Award: No Werewolfes left
NightPhaseMain --> MainPhaseNight
@enduml @enduml
``` ```
```plantuml ```plantuml
@startuml(id=DayAndNight) @startuml(id=TheNight)
state NightPhaseCupin <<fork>> state NightPhaseCupin <<fork>>
[*] --> NightPhaseCupin: Game has Cupin [*] --> NightPhaseCupin: Game has Cupin
[*] --> NightPhaseMain: no Cupin [*] --> NightPhaseMain: no Cupin
@@ -61,13 +68,28 @@ NightPhaseLovedOnesEnd --> NightPhaseMain : all ready
state NightPhaseMain { state NightPhaseMain {
!include https://gitea.d1v3.de/matthias/pywerewolf/raw/branch/master/README.md!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 ```plantuml
NightPhaseLate: LeaderWolf selects victim to convert @startuml(id=TheDay)
NightPhaseLate: witch is allowed to select heal/murder [*] --> ShowDead: Done
ShowDead: Show the Dead of the night
NightPhaseMain --> ShowDead: no Witch/Leaderwolf && voted && actions done and all ready ShowDead --> Election: No Major
NightPhaseLate --> ShowDead: actions taken Election --> Discussion: Major elected
ShowDead --> Discussion: all ready || major ready
Discussion --> Accuse: time is up / major forwarded
Accuse --> Poll:
Poll --> Shoot: Poll successfull
Poll --> Voting: Poll unsuccessfull
Voting --> ShootTheWolf
ShootTheWolf --> [*]: Done
@enduml @enduml
``` ```
@@ -94,6 +116,26 @@ NightPhaseMainEnd --> [*]
@enduml @enduml
``` ```
```plantuml
@startuml(id=NightPhaseLate)
state NightPhaseLateStart <<fork>>
[*] --> NightPhaseLateStart
NightPhaseLateStart --> SelectHealOrPoison: Witch
NightPhaseLateStart --> SelectLeaderVictim: Leaderwolf
NightPhaseLateStart --> SleepAgain: Villager
state NightPhaseLateEnd <<join>>
SelectHealOrPoison --> NightPhaseLateEnd: Selection finished
SelectHealOrPoison -left-> SelectHealOrPoison: Next selection
SelectLeaderVictim --> NightPhaseLateEnd: Done
SleepAgain --> NightPhaseLateEnd
NightPhaseLateEnd --> [*]
@enduml
```