Skip to content

naush/HSTTT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Haskell Tic Tac Toe

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages