Haskell Tic Tac Toe
Haskell
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Algorithm
Board
Game
HUnit
Player
UI
Utility
.gitignore
AllTests.hs
Main.hs
README.rdoc
TestHelper.hs

README.rdoc

HSTTT

Install Haskell

http://hackage.haskell.org/platform/

DMG: http://hackage.haskell.org/platform/2010.1.0.0/haskell-platform-2010.1.0.1-i386.dmg
MACPORT: sudo port install haskell-platform (currently not available)

Compile and run

ghc -O --make Main
./Main

Run Tests in Interactive Mode

Launch into GHCi (Haskell interpreter) with any test module and enter main at prompt.

ghc --interactive -i"/Path/to/HSTTT" "/Path/to/HSTTT/AllTests.hs"
ghc --interactive -i"/Path/to/HSTTT" "/Path/to/HSTTT/Algorithm/TestEvaluation.hs"
...

Benchmark

Enter timer n at prompt, where n is the number of times you want to run getBestMove (aka Minmax).

ghc --interactive -i"/Path/to/HSTTT" "/Path/to/HSTTT/Utility/Benchmark.hs"
timer 5