quoridor-hs-0.1.0.0: A Quoridor implementation in Haskell

Safe HaskellSafe-Inferred
LanguageHaskell2010

Quoridor.Cmdline.Options

Synopsis

Documentation

data Options Source

Represents possible options from the cmdline

data ExecMode Source

Represents an execution mode for the program. One can run quoridor at local play, server host or client join modes

Constructors

ExLocal 
ExHost 
ExJoin 
ExProxy 

Instances

getOptions :: [String] -> IO Options Source

Given the args from the cmdline, returns them parsed into an Options data value. It runs in the IO monad to allow the ability to exit the program if something fails in the parsing (upon which, a usageInfo will be displayed)