board-games-0.1: board-games.cabal
Name: board-games
Version: 0.1
License: GPL
License-File: LICENSE
Author: Henning Thielemann <haskell@henning-thielemann.de>
Maintainer: Henning Thielemann <haskell@henning-thielemann.de>
Homepage: http://code.haskell.org/~thielema/games/
Category: Game, Web
Synopsis: Three games for inclusion in a web server
Description:
Three games that might run as CGI script in a web server:
Connect Four, Rows&Columns, Mastermind
.
Check running versions at
<http://www.henning-thielemann.de/VierGewinnt> and
<http://www.henning-thielemann.de/ZeilenSpalten>.
.
You can build an example web server by installing with
.
> cabal install board-games -fbuildExamples
.
Then start the server with
.
> ./dist/build/board-games/board-games
.
and play the games in your browser at the URL
<http://localhost:8080/>.
.
Currently the games use German texts.
I wanted to use gettext, but this is not thread-safe.
Tested-With: GHC==6.4.1, GHC==6.8.2, GHC==6.12.3
Cabal-Version: >=1.8
Build-Type: Simple
Source-Repository head
type: darcs
location: http://code.haskell.org/~thielema/games/
Flag buildExamples
description: build example web server that runs the games
Flag splitBase
description: Choose the new smaller, split-up base package.
Library
Build-Depends:
html >=1.0 && <1.1,
cgi >=3001.1 && <3001.2,
utility-ht >=0.0.3 && <0.1,
transformers >=0.2.2 && <0.3
If flag(splitBase)
Build-Depends:
containers >=0.2 && <0.5,
random >=1.0 && <1.1,
array >=0.1 && <0.4,
base >= 2 && <5
Else
Build-Depends: base >= 1.0 && < 2
GHC-Options: -Wall
Hs-Source-Dirs: src
Exposed-Modules:
Game.Tree
Game.VierGewinnt.HTML
Game.VierGewinnt.Text
Game.VierGewinnt
Game.ZeilenSpalten.HTML
Game.ZeilenSpalten
Game.Mastermind.HTML
Game.Mastermind
Game.Mastermind.CodeSet
Game.Mastermind.CodeSet.Union
Game.Mastermind.CodeSet.Tree
Other-Modules:
Game.Utility
Executable board-games
Main-Is: Game/Server.hs
GHC-Options: -Wall
Hs-Source-Dirs: src
Other-Modules:
Game.Server.Option
If flag(buildExamples)
Build-Depends:
httpd-shed >=0.4 && <0.5,
network >=2.3 && <2.4,
html >=1.0 && <1.1,
cgi >=3001.1 && <3001.2,
utility-ht >=0.0.3 && <0.1,
transformers >=0.2.2 && <0.3,
containers >=0.2 && <0.5,
random >=1.0 && <1.1,
array >=0.1 && <0.4,
base >= 2 && <5
Else
Buildable: False
Test-Suite testsuite
Type: exitcode-stdio-1.0
Main-Is: Game/Test.hs
GHC-Options: -Wall
Hs-Source-Dirs: src
Other-Modules:
Game.Test.Mastermind
Build-Depends:
QuickCheck >1.2 && <3.0,
utility-ht >=0.0.3 && <0.1,
transformers >=0.2.2 && <0.3,
containers >=0.2 && <0.5,
random >=1.0 && <1.1,
array >=0.1 && <0.4,
base >= 2 && <5