Nomyx-Language-0.4.1: Language to express rules for Nomic

Safe HaskellNone

Language.Nomyx.Outputs

Contents

Description

All the building blocks to allow rules to produce outputs.

Synopsis

Outputs

newOutput :: Nomex String -> Maybe PlayerNumber -> Nomex OutputNumberSource

outputs a message to one player

outputAll :: Nomex String -> Nomex OutputNumberSource

output a message to all players

displayVar :: (Typeable a, Show a, Eq a) => Maybe PlayerNumber -> MsgVar a -> (a -> Nomex String) -> Nomex ()Source

showArrayVar :: (Show a, Show i) => Nomex String -> [(i, a)] -> Nomex StringSource