updated states
This commit is contained in:
12
README.md
12
README.md
@@ -16,7 +16,11 @@ WaitingForPlayers --> StartGame: Start && ready
|
|||||||
StartGame : Assign Player Roles
|
StartGame : Assign Player Roles
|
||||||
StartGame : Show Introduction
|
StartGame : Show Introduction
|
||||||
|
|
||||||
StartGame --> MainPhaseNight : all ready
|
StartGame --> MainPhaseNight : No Cupin
|
||||||
|
StartGame --> NightPhaseCupin: Cupin
|
||||||
|
|
||||||
|
NightPhaseCupin --> InformLovedOnes: Cupin selected
|
||||||
|
InformLovedOnes --> MainPhaseNight: ack
|
||||||
state MainPhaseNight {
|
state MainPhaseNight {
|
||||||
!include https://gitea.d1v3.de/matthias/pywerewolf/raw/branch/master/README.md!TheNight
|
!include https://gitea.d1v3.de/matthias/pywerewolf/raw/branch/master/README.md!TheNight
|
||||||
}
|
}
|
||||||
@@ -33,11 +37,7 @@ MainPhaseDay --> MainPhaseNight: Some Werewolfes left
|
|||||||
```plantuml
|
```plantuml
|
||||||
@startuml(id=TheNight)
|
@startuml(id=TheNight)
|
||||||
hide empty description
|
hide empty description
|
||||||
[*] --> NightPhaseCupin:
|
[*] --> NightPhaseMain : Cupin already selected or No Cupin
|
||||||
|
|
||||||
NightPhaseCupin --> InformLovedOnes: Cupin selected
|
|
||||||
InformLovedOnes --> NightPhaseMain: ack
|
|
||||||
NightPhaseCupin --> NightPhaseMain : Cupin already selected or No Cupin
|
|
||||||
' state NightPhaseCupinEnd <<join>>
|
' state NightPhaseCupinEnd <<join>>
|
||||||
' NightPhaseCupin --> WaitToContinueCupin: !Cupin
|
' NightPhaseCupin --> WaitToContinueCupin: !Cupin
|
||||||
' NightPhaseCupin --> SelectLovedOnes: Cupin
|
' NightPhaseCupin --> SelectLovedOnes: Cupin
|
||||||
|
|||||||
@@ -149,6 +149,15 @@ class Game(object):
|
|||||||
next=GameState.start_game,
|
next=GameState.start_game,
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
|
GameState.start_game: [
|
||||||
|
TransitionObject(
|
||||||
|
name = "StartGame 2 MainPhaseNight",
|
||||||
|
inputType=GameMasterStartGame,
|
||||||
|
condition=[self.players_ready],
|
||||||
|
transition=self.assign_roles,
|
||||||
|
next=GameState.start_game,
|
||||||
|
)
|
||||||
|
],
|
||||||
}
|
}
|
||||||
|
|
||||||
if game_id is None:
|
if game_id is None:
|
||||||
|
|||||||
Reference in New Issue
Block a user