Skip to content

lisahamm/tic_tac_toe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TicTacToe

Ruby Tic Tac Toe

Installation

Clone the git repository

$ git clone https://github.com/lisahamm/tic_tac_toe.git

Then cd into the directory

$ cd tic_tac_toe

Install dependencies

$ bundle install

Run game!

$ ./bin/tic_tac_toe

Usage

The game is setup for a human player and an unbeatable computer player. The human player can pick its mark ('X' or 'O') and its turn order (first or second). Human player must enter a number 1-9 to mark the corresponding cell:

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

About

Ruby Tic Tac Toe

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages