This project consists of building a Ruby version of Tic Tac Toe game Tic Tac Toe using Ruby.
The goal was to use classes and methods to set up the basic elements of the game.
The specifications for this project can be found at The Odin Project.
No instalation needed, just download/clone this repository GitHub Repository on your computer.
- The interface of this game will be your computer's terminal. Search terminal in your computer to open it.
- In the terminal, use the command
cd
to go to the place where you have saved/cloned the Tic Tac Toe repository. For example: Desktop/User/tic-tac-toe/. You may use the comandls
to see the files and repositories exitent in your current location. - Now, use the comand
cd bin
again to enter the folder and executeruby main.rb
in the terminal to start the game. - Enjoy the game!
- Type the name of Player1, which will be signed to the symbol 'X';
- Type the name of Player2, which will be signed to the symbol 'O';
- Now the first player ('X') can select any space to insert the value, follow your number keyboard to compare the available spaces:
7 | 8 | 9 ----------- 4 | 5 | 6 --> The number in the virtual board will be represented by the number on your keyboard. ----------- 1 | 2 | 3
- Remember not to insert any invalid number (above 9) or repeat the same number that is already taken by a symbol (no cheating!!);
- The winner will be the first player/symbol to complete a sequence of a row, column, or diagonal.
👩🏼💻 Ana Paula Hübner
- GitHub: @anapdh
- Twitter: @dev_anahub
- LinkedIn: Ana Paula Hübner
😎 Abdo Amin
- GitHub: @Abdelrhman-Amin
- Twitter: @Abdo Amin
- LinkedIn: @Abdo Amin
Contributions, issues, and feature requests are welcome!
Feel free to check the issues page.
Give a ⭐️ if you like this project!
This project is MIT licensed.