Skip to content

mechanicles/ruby-tictactoe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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/n>: 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 :(

Releases

No releases published

Packages

No packages published

Languages