A try at Ruby object-oriented Tic-Tac-Toe!
You must have Ruby installed to play. Clone the repository to your computer, navigate to its root directory, and run:
ruby bin/tictactoe
- "X" and "O" are interchangeable. One can be a human with the other played by the computer. Or, make them both humans. Or make them both computers! Just remember...
- The player who goes first is picked at random.
- The computer is "smart" in the sense that it'll immediately win if it can, but it'll also block its opponent from winning if possible. Otherwise, it'll just pick a space at random.
- The size of the board is customizable - you can play an 81-space 9x9 Tic-Tac-Toe game! Or a 4-space 2x2 game.
- Get testing (probably with RSpec) implemented
- Make the Ruby styling a little better
- As of right now, you can only 'properly' quit the app at the end of a game. However, ^C at any time will quit as well.