Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
doc
 
 
 
 
 
 
 
 

README.md

tic-tac-toe

An AI Tic Tac Toe to be played locally or over a server

Installation:

Install leiningen, then clone this project:

git clone git://github.com/richardharrington/tic-tac-toe.git

Run locally:

cd <path-to>/tic-tac-toe
lein repl
(play-game-local pick-square-minimax pick-square-minimax)

You can also use pick-square-heuristic, pick-square-from-user-input, or pick-square-random in place of either or both of those two arguments, to test out the various algorithms.

Run over the server:

cd <path-to>/tic-tac-toe
lein repl
(play-request pick-square-minimax)

You can also use pick-square-heuristic, pick-square-from-user-input, or pick-square-random for the argument, which is the algorithm the local player will use. To find another player, have them connect to the server (currently http://thomasballinger.com:8001, with API instructions at https://github.com/eriktaubeneck/tictax), or simply start another repl yourself and have your two repls play against each other.

And, of course, if it's no longer deployed to the address above, or you want to see the output from the server, you can run it locally. You have to install Python and Flask, then clone the directory above and run it.

About

Tic Tac Toe in Clojure

Resources

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.