This is a project where you can play the Tic-Tac-Toe game, (builded with Ruby language), for two players, who take turns for drawing X or O in spaces of a 3×3 board. The player who first place three of their marks in a horizontal, vertical, or diagonal row is the winner.
- RUBY
- Clone or download the project in the repository.
- Acess to the name of folder with your terminal commands.
- Run this instruction: bin/main.rb
- Once you initialize the game, it will ask you for two names: Player1 and Player2. Player1 will get the first turn and the sign 'X' and Player2 will get the second turn and the sign 'O".
- The board is displayed in the screen and the game will ask the Player1 to type a move from numbers 1 to 9 representing the cells of the board. If you choose another number, or character, the game will display an alert, and will ask you to select a valid move.
- For a win you need to place three of their marks in a horizontal, vertical, or diagonal row. If no player won and there are no available spots in the board, the game will display a tie.
- The game will display the result: win or tie, and gives you the option of play again or end the game.
Melissa Castorena - mcastorena0316@gmail.com
Guadalupe Rangel- kanemekanik@gmail.com
Project Link: Tic-Tac-Toe