Skip to content

damonkelley/tictactoe-fsharp

Repository files navigation

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#

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published