Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/mechanicles/ruby-tictactoe
- Owner: mechanicles
- Created: 2011-02-06T16:22:20.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2020-06-02T17:35:46.000Z (over 4 years ago)
- Last Synced: 2023-04-15T22:36:45.926Z (over 1 year ago)
- Topics: ai, artificial-intelligence, game, ruby, terminal, terminal-game, tic-tac-toe, tictactoe
- Language: Ruby
- Homepage:
- Size: 4.88 KB
- Stars: 11
- Watchers: 3
- Forks: 15
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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 |
-----------
| | OWhere do want to move? <1-9>: 3
X | O | X
-----------
| X |
-----------
| | ORobot (O player) is taking turn...
X | O | X
-----------
| X |
-----------
O | | OWhere do want to move? <1-9>: 4
X | O | X
-----------
X | X |
-----------
O | | ORobot (O player) is taking turn...
X | O | X
-----------
X | X |
-----------
O | O | O*************| Result |*************
Sorry, you lost the game :(
```