Skip to content

Latest commit

 

History

History
29 lines (17 loc) · 792 Bytes

README.rdoc

File metadata and controls

29 lines (17 loc) · 792 Bytes

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