Store the player turns in the public state of games
This commit is contained in:
parent
e10afdfac1
commit
8538b8f5ea
1 changed files with 3 additions and 2 deletions
|
@ -33,8 +33,8 @@ import qualified Hanafuda (Card(..), Flower(..), Pack, cardsOfPack, empty, packO
|
|||
import Hanafuda.ID (ID(..), getID)
|
||||
import Hanafuda.KoiKoi (PlayerID)
|
||||
import qualified Hanafuda.KoiKoi as KoiKoi (
|
||||
Action(..), Game(..), Mode(..), Move(..), Player(..), Players(..), Score
|
||||
, Scores, Source(..), Step(..), Yaku(..)
|
||||
Action(..), Game(..), Mode(..), Move(..), Player(..), Players(..), PlayerTurn
|
||||
, Score, Scores, Source(..), Step(..), Yaku(..)
|
||||
)
|
||||
import Hanafuda.Player (Player(..), Players(..))
|
||||
|
||||
|
@ -168,6 +168,7 @@ data PublicState = PublicState {
|
|||
mode :: KoiKoi.Mode
|
||||
, scores :: KoiKoi.Scores
|
||||
, month :: Hanafuda.Flower
|
||||
, nextPlayer :: KoiKoi.PlayerTurn
|
||||
, players :: Map PlayerID PublicPlayer
|
||||
, playing :: PlayerID
|
||||
, winning :: PlayerID
|
||||
|
|
Loading…
Reference in a new issue