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
- Host: GitHub
- URL: https://github.com/dbz/tic-tac-toe
- Owner: Dbz
- Created: 2014-07-07T05:17:59.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2014-09-08T02:13:08.000Z (almost 12 years ago)
- Last Synced: 2025-02-05T19:02:25.212Z (over 1 year ago)
- Language: Ruby
- Homepage:
- Size: 250 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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/