From 43b02003042b52cca3f41b14760609f0ed06c495 Mon Sep 17 00:00:00 2001 From: Tissevert Date: Tue, 22 Oct 2019 17:45:07 +0200 Subject: [PATCH] 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) --- src/Hanafuda/Message.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Hanafuda/Message.hs b/src/Hanafuda/Message.hs index e9de70f..ac0296a 100644 --- a/src/Hanafuda/Message.hs +++ b/src/Hanafuda/Message.hs @@ -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