-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathStateDiagram.puml
41 lines (34 loc) · 1.28 KB
/
StateDiagram.puml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
@startuml
'https://plantuml.com/state-diagram
[*] --> UnConfigured
UnConfigured --> WaitStartReply : /start
WaitStartReply --> WaitGreeting : Message with\nreply to user
WaitStartReply --> WaitStartReply : /skip and No\nUser Set
WaitStartReply --> WaitGreeting : /skip and\nUser Set
WaitGreeting --> InvalidTimes : Time out\nof Range
MainUserGreeted -> InvalidTimes : Time out\nof Range
AnyPlayerGreeted --> InvalidTimes : Time out\nof Range
InvalidTimes --> WaitGreeting : Time in Range
WaitGreeting --> MainUserGreeted : Greeting given\nby main User
state MainUserGreeted {
Normal : Reply stars
Normal : in order
[*] -> Normal
Normal -> AnyPlayerGreeted : Player replied
Normal --> RecalculateTotalStars : User\nleft/entered
RecalculateTotalStars --> Normal : Stars and\nscore changed
RecalculateTotalStars : Change First reply stars number
}
state AnyPlayerGreeted {
[*] -> PlayerGreetNormal
PlayerGreetNormal --> RedactStarHistory : User\nleft/entered
RedactStarHistory : Edit Given stars
RedactStarHistory : Change First reply stars number
}
state InvalidTimes {
[*] --> Idle
Idle --> ChangeStarTotal : User\nleft/entered
ChangeStarTotal --> Idle : Stars Total\nChanged
ChangeStarTotal : Only change if 1 <= Playing Users >= maxStars
}
@enduml