Console Tic Tac Toe game built around a Ruby Tic Tac Toe gem.
Clone the git repository
$ git clone https://github.com/lisahamm/ruby_ttt_console.git
Then cd
into the directory
$ cd ruby_ttt_console
Install dependencies
$ bundle install
Run game!
$ ./bin/tic_tac_toe
The game is setup for two human players or one 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 players must enter a number 1-9 to mark the corresponding cell:
+- - - - - -+
| 1 | 2 | 3 |
+- - - - - -+
| 4 | 5 | 6 |
+- - - - - -+
| 7 | 8 | 9 |
+- - - - - -+