/tic-tac-toe

Perfect Tic-tac-toe AI which you can play against written in Racket

Primary LanguageRacketBSD 2-Clause "Simplified" LicenseBSD-2-Clause

Tic-tac-toe

Build Status

This repository contains AI implementations for the popular paper-and-pencil game known as Tic-tac-toe. There is also a GUI-based game that allows the user to play against the computer. There is also a blog post about this project.

The badge on this section presents the build and test status of the master branch.

Racket Code

You will need, as you may assume, a Racket distribution in order to run the Racket program. The algorithm used is a simple minimax implementation.

Running the interactive game will allow you to play against the computer.

This should be as simple as

$ racket game.rkt

Game Screenshot