Store both hands in private state because it's easier to handle and allow the player's hand to remain unsigned (they can modify it, it's not taken into account by the server)
This commit is contained in:
parent
8538b8f5ea
commit
43b0200304
1 changed files with 1 additions and 1 deletions
|
@ -147,7 +147,7 @@ instance ToJSON Hanafuda.Flower where
|
|||
toEncoding = genericToEncoding defaultOptions
|
||||
|
||||
data PrivateState = PrivateState {
|
||||
opponentHand :: Hanafuda.Pack
|
||||
hands :: Map PlayerID Hanafuda.Pack
|
||||
, deck :: [Hanafuda.Card]
|
||||
} deriving Generic
|
||||
|
||||
|
|
Loading…
Reference in a new issue