aboutsummaryrefslogtreecommitdiff
path: root/doc/diagrams/useCase_generateAMove.puml
blob: fa76edbccd024f64a1dbc2937fb54d3f21e81db2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
@startuml

!include skinparams.puml

actor "GUI program / Human user" as user

boundary "Engine CLI" as cli
control "Play a stone" as playStone
control "Think next move" as think
entity "Board state" as state

loop until desired board is set
    user -> cli : play stone
    cli -> playStone
    playStone -> state
    cli <- state
end

user -> cli : ask for move
cli -> think
think -> state
cli <- state : Show move

@enduml