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:
Tissevert 2019-10-22 17:45:07 +02:00
parent 8538b8f5ea
commit 43b0200304

View file

@ -147,7 +147,7 @@ instance ToJSON Hanafuda.Flower where
toEncoding = genericToEncoding defaultOptions toEncoding = genericToEncoding defaultOptions
data PrivateState = PrivateState { data PrivateState = PrivateState {
opponentHand :: Hanafuda.Pack hands :: Map PlayerID Hanafuda.Pack
, deck :: [Hanafuda.Card] , deck :: [Hanafuda.Card]
} deriving Generic } deriving Generic