For a throughout description of the game you can read this article from wikipedia. Altough you don't have to, we cover the basic instructions here. Welcome!
- The first player chooses a symbol, X or O. The other player has assigned the remaining option.
- The board is built as a sucession of ascending numbers that start from 1 through 9, the following image represents the board positions.
- By turns, pick a position at the board.
- The player who succeeds in placing three of their symbols in either a horizontal, vertical, or diagonal row wins the game. The following image shows a win scenario for the O player.
This project was executed by the duo of:
- Ruby
Inside your terminal, type the following instructions. Make sure to be in a directory where you have permissions to create files.
$ git clone https://github.com/santiago-rodrig/tic_tac_toe.git
$ cd tic_tac_toe
$ ./bin/main.rb
If the last command fails then the main.rb
file is not executable (though it should). Type this in your terminal (note that the #
means the command should be executed as root).
# chmod a+x main.rb
go to the main folder and run
$ rspec
You will see something like that
If you have any issue, request, or suggestion, post it here.
This project exists thanks to the Microverse program, that teaches people from all around the world how to become a software developer. If you're interested take a spin at their website.