@startuml

state "State_Partie" as SP {
  state "Initialisation" as Init
  state "Début de la Partie" as Start
  state "Tour d'un joueur" as Player
  state "Fin de la Partie" as End


[*] --> Init
Init --> Init : allInscrit() \n [#joueur < joueurAttendue]
Init --> Start : allInscrit() / ^allReady \n [#joueur = joueurAttendue]
Start --> Player : startGame()
Player -> Player : nextPlayer(IdJoueur player) / ^debutTurn \n 
Player --> End : finishGame() 
End --> [*]
}

note right of Start
  À ce moment, tous les joueurs passent de
  "Non inscrit" à "En attente".
end note

@enduml


