Skip to content

JoshCheek/ttt-io

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a Tic Tac Toe implementation in Io as part of my residency at 8th Light.

Best move is calculated with an array of possible moves that is searched. This is inefficient, but using hashmaps was causing segfaults when they got sufficiently large.

The initial version calculated the result, but it was far too slow to use (on the order of minutes) despite some optimizations I made.

Big thanks goes to Jeremy Treguna for all his help on IRC.

Installation

# install the Io programming language
$ brew install io

# install test lib
$ git clone https://github.com/benmills/willful.git
$ cd willful
$ io install.io
$ cd ..
$ rm -rf "willful"

# install ttt-io
$ git clone git://github.com/JoshCheek/ttt-io.git
$ cd ttt-io

Run Tests

$ willful test/*-test.io test/cli/*-test.io

Play Game

$ bin/ttt-io

About

Tic Tac Toe in Io

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages