48 lines
1.0 KiB
Markdown
48 lines
1.0 KiB
Markdown
# PyWerwolf
|
|
|
|
Trying to rebuild [https://github.com/foin137/werwolfonline.eu](https://github.com/foin137/werwolfonline.eu) in python
|
|
|
|
|
|
## Phases of the game
|
|
|
|
```plantuml
|
|
@startuml(id=overview)
|
|
hide empty description
|
|
|
|
state WaitingForPlayers
|
|
[*] --> WaitingForPlayers: Created
|
|
|
|
WaitingForPlayers --> StartGame: Start && ready
|
|
StartGame : Assign Player Roles
|
|
StartGame : Show Introduction
|
|
|
|
StartGame --> Night : All players ready
|
|
|
|
|
|
Night --> SelectVictim
|
|
|
|
SelectVictim --> KillVictim
|
|
KillVictim --> ShowDead: Some Villagers left
|
|
KillVictim --> Award: No Villagers left
|
|
|
|
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 --> Award: No Werewolfes left
|
|
ShootTheConvict --> Night: Some Werewolfes left
|
|
@enduml
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|