ssd by remco

This commit is contained in:
2022-09-16 10:43:16 +02:00
parent da98bc2c91
commit 0f8b0ce880
8 changed files with 60 additions and 14 deletions

View File

@@ -0,0 +1,34 @@
@startuml
skinparam sequenceMessageAlign right
entity " " as start
participant Game
participant Player
participant Card
participant Referee
actor User
actor Bot
start -> Game: playGame()
loop until someone wins
Game -> Player: getPlay(currentCard)
alt user's turn
alt play
User -> Player: play(card)
Game <-- Player: playedCard
Game -> Referee: checkPlay(currentCard, playedCard)
else draw
User -> Player: draw()
end
else bot's turn
alt play
Bot -> Player: play(card)
Game <-- Player: playedCard
Game -> Referee: checkPlay(currentCard, playedCard)
else draw
Bot -> Player: draw()
end
end
end
@enduml