Nomyx-Rules-0.1.0: Language to express rules for Nomic

Safe HaskellNone




evalExp :: Exp a -> RuleNumber -> State Game aSource

evaluate an expression. The rule number passed is the number of the rule containing the expression.

triggerEvent :: (Typeable e, Show e, Eq e) => Event e -> EventData e -> State Game ()Source

triggerChoice :: Int -> Int -> State Game ()Source

findChoice :: (Eq a, Read a) => String -> Event (InputChoice a) -> aSource

getFreeNumber :: (Eq a, Num a, Enum a) => [a] -> aSource

evInputChoice :: (Eq d, Show d, Typeable d, Read d) => Event (InputChoice d) -> d -> State Game ()Source