Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A TicTacToe game written in Haskell
JavaScript Haskell C
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
Handler
Settings
cabal-dev
config
dist
messages
src
static
templates
tests
.ghci
.gitignore
Application.hs
Foundation.hs
Import.hs
LICENSE
Readme.markdown
Settings.hs
WebInterface.cabal
main.hs
package.json

Readme.markdown

What this is

It's a web interface for a Tic Tac Toe game written in Haskell.

How to play on OSX

I've included a binary compiled for OSX.
On the command line, cd into the project's root directory
Then run './dist/build/WebInterface/WebInterface'
Then navigate to localhost:3000 in your web browser to play the game.

How to play otherwise

First, you'll need to install Haskell and the Haskell Platform: http://hackage.haskell.org/platform/
On the command line, navigate to the project's root directory
Than run 'cabal update'
Then run 'cabal install'
Then run 'yesod devel'
Then navigate to localhost:3000 in your web browser to play the game.

Where the AI's code is

It's in the 'src' directory.

Playing on the command line

I've included the original command line interface in case you're a typing sort of a person rather than a clicking sort.

On OSX

I've included a binary compiled for OSX.
On the command line, cd into the project's root directory
Then run './dist/build/CommandLineInterface/TicTacToe'

On other platforms

First, you'll need to install Haskell: http://hackage.haskell.org/platform/
On the command line, navigate to the project's 'src' directory
Then run 'ghc -static -O2 TicTacToe.hs'
Then run './TicTacToe'

Something went wrong with that request. Please try again.