Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/mechanicles/ruby-tictactoe

Tic-Tac-Toe game with artificial intelligence made in Ruby
https://github.com/mechanicles/ruby-tictactoe

ai artificial-intelligence game ruby terminal terminal-game tic-tac-toe tictactoe

Last synced: 7 days ago
JSON representation

Tic-Tac-Toe game with artificial intelligence made in Ruby

Awesome Lists containing this project

README

        

Tic Tac Toe in Ruby
=================
Tic-Tac-Toe game in Ruby language with AI.

```
************************************************************************
Powerful Tic-Tac-Toe game in Ruby Language
Author: [[email protected]]
Copyright: (c) 2011-2014 Santosh Wadghule
************************************************************************

1 | 2 | 3
-----------
4 | 5 | 6
-----------
7 | 8 | 9

>> PLEASE SEE THE POSITIONS OF THE BOARD <<

Do you want to play first? : y

Where do want to move? <1-9>: 1

X | |
-----------
| |
-----------
| |

Robot (O player) is taking turn...

X | O |
-----------
| |
-----------
| |

Where do want to move? <1-9>: 5

X | O |
-----------
| X |
-----------
| |

Robot (O player) is taking turn...

X | O |
-----------
| X |
-----------
| | O

Where do want to move? <1-9>: 3

X | O | X
-----------
| X |
-----------
| | O

Robot (O player) is taking turn...

X | O | X
-----------
| X |
-----------
O | | O

Where do want to move? <1-9>: 4

X | O | X
-----------
X | X |
-----------
O | | O

Robot (O player) is taking turn...

X | O | X
-----------
X | X |
-----------
O | O | O

*************| Result |*************
Sorry, you lost the game :(
```