An open API service indexing awesome lists of open source software.

https://github.com/dbz/tic-tac-toe

Tic Tac Toe, Two Player and AI
https://github.com/dbz/tic-tac-toe

Last synced: about 1 year ago
JSON representation

Tic Tac Toe, Two Player and AI

Awesome Lists containing this project

README

          

Tic-Tac-Toe
===========

Tic Tac Toe was created to help me learn Ruby

Ruby
----

The Ruby Files are played in terminal:

* Tic Tac Toe.rb is two player
* Tic Tac Toe AI.rb is against the computer

The AI will always win or draw. It follows the move order found on wikipedia:

1. Win
2. Block Win
3. Fork
4. Block Fork
5. Play Center
6. Play Opposite Corner
7. Play Empty Corner
8. Play Empty Side

Web App
-------

The Web App is a two player Javascript version with a simple UI

Play Online: http://dbz.github.io/Tic-Tac-Toe/