board-games-0.1.0.6: Three games for inclusion in a web server
Game.Mastermind.HTML
Description
Input and output for Game.Mastermind
labelAnchor :: String -> Html -> Html Source #
relHeight :: Int -> HtmlAttr Source #
relWidth :: Int -> HtmlAttr Source #
type Move = (String, Eval) Source #
type Config = (Int, Set Char, Int, Maybe [Move], Maybe String) Source #
evaluation :: Eval -> Html Source #
state :: Config -> Maybe (T Char) -> Maybe String -> Html Source #
game :: String -> Html Source #
start :: Int -> Html Source #
complete :: Html -> Html Source #
generate :: Maybe String -> IO Html Source #
formatQuery :: Config -> String Source #
formatMove :: (String, Eval) -> String Source #
parseQuery :: String -> Maybe (Config, Maybe String) Source #
main :: IO () Source #