Schafkopf-Server/Sources/App/Model/Games/GamePhase.swift

29 lines
689 B
Swift
Raw Permalink Normal View History

2021-12-01 22:49:54 +01:00
import Foundation
/**
The phase of a table
*/
enum GamePhase: String, Codable {
/// The table is not yet full, so no game can be started
case waitingForPlayers = "waiting"
/// The players are specifying if they want to double ("legen")
case collectingDoubles = "doubles"
/// The game negotiation is ongoing
case bidding = "bidding"
2021-12-06 11:43:30 +01:00
/// The game must be selected by the player
case selectGame = "select"
2021-12-01 22:49:54 +01:00
/// The game is in progress
case playing = "play"
2021-12-06 11:43:30 +01:00
/// The player must select a card to give to the wedding offerer
case selectWeddingCard = "wedding"
2021-12-01 22:49:54 +01:00
/// The game is over
case gameFinished = "done"
}