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
1 changed files with 1 additions and 1 deletions

View File

@ -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