A Tic Tac Toe Game with unbeatable AI.
Run this command to launch the game from the root
directory:
ruby bin/tic_tac_toe
Follow the instructions then.
1 | 2 | 3
4 | 5 | 6
7 | 8 | 9
Human player starts first.
Then:
-
It will switch players after a draw.
-
Human player will play first after a loss.
Install dependencies:
bundle install
Run:
bundle exec rake