DayMessage dm -> return (Left dm, ps')
NightMessage nm -> return (Right nm, ps')
-updateState :: IncomingMessage -> ParttyState -> ParttyState
-updateState msg ps = ps -- TODO: this is a stub
+-- Message parsing
parseIncomingMessage :: String -> IncomingMessage
parseIncomingMessage msg = case id of
toString (Tell player (Liar other)) = unwords ["liar", show player, show other]
toString (Tell player (NoLiar other)) = unwords ["recommand",show player, show other]
+-- Bookkeeping
+
+updateState :: IncomingMessage -> ParttyState -> ParttyState
+updateState msg ps = ps -- TODO: this is a stub
+
-- Convenience functions for accessing the state