Skip to content

Latest commit

 

History

History
39 lines (24 loc) · 615 Bytes

README.md

File metadata and controls

39 lines (24 loc) · 615 Bytes

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 |
+- - - - - -+