damonkelley / tictactoe-fsharp

TicTacToe in F#

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TicTacToe - F#

An unbeatable Tic Tac Toe game written in F#

Setup

First, install Mono.

$ brew install mono

Then, download and build the project.

$ git clone git@github.com:damonkelley/tictactoe-fsharp.git
$ cd tictactoe-fsharp
$ ./build.sh

Fake

Fake is the build tool used for the project. All targets are defined in build.fsx. The build.sh script is a helper that will invoke Fake.

Invoking the script with no arguments will execute the default target which will compile and test the project.

$ ./build.sh

Play the game

$ mono ./build/TicTacToe.exe

Tests

Run the unit tests.

$ ./build.sh Test

Run the integrations tests. This will run two tests that test the computer strategy. These take approximately 2 minutes to complete.

$ ./build.sh LongTests

Run the unit tests and the long tests.

$ ./build.sh AllTests

About

TicTacToe in F#


Languages

Language:F# 97.8%Language:Shell 1.7%Language:Batchfile 0.5%