split diagram
This commit is contained in:
40
README.md
40
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 <<fork>>
|
||||
[*] --> 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)<len(special roles) || num_werewolfes < 1)
|
||||
GameMaster : Show the game id/link
|
||||
WaitingForPlayers : Create game in Database
|
||||
EditRules -> GameMaster: close Rules
|
||||
GameMaster -> EditRules: edit rules
|
||||
state WaitingForPlayersEnd <<join>>
|
||||
|
||||
Player --> WaitingForPlayersEnd: Ready
|
||||
|
||||
|
||||
GameMaster --> GameMaster: start &&\nlen(Players)>=len(special roles) &&\nnum_werewolfes > 1
|
||||
GameMaster --> WaitingForPlayersEnd: start &&\n(len(Players)<len(special roles) ||\n num_werewolfes < 1)
|
||||
|
||||
WaitingForPlayersEnd --> StartGame
|
||||
StartGame : Assign Player Roles
|
||||
StartGame : Show Introduction
|
||||
|
||||
state GameHasCupin <<choice>>
|
||||
state NightPhaseCupin <<fork>>
|
||||
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 <<fork>>
|
||||
[*] --> 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
|
||||
|
||||
Reference in New Issue
Block a user