In this project we are going to make a Tic-Tac-Toe game using Ruby.
This project is a tic-tac-toe game on the command line where two human players can play against each other, and the board is displayed in between turns.
- Player 1 name input :
- Gameplay :
- Gameover announce the winner :
-Ruby
- Ruby installed
- To download this repository go on this page Tic-Tac-Toe and click on the Code button
- Then you can choose to download it as a ZIP file or copy HTTPS/ssh address and clone it using Terminal or Bash in your local machine.
- Enter the file of the Repository with your Terminal/Bash and run "./bin/main.RB"
-To run it remotely you can follow the link Tic-Tac-Toe-Game
-
The game is played on a grid that's 3 squares by 3 squares marked by numbers from 1 to 9
-
The first player is X, the second one is O. Players take turns putting their marks in empty squares typing in a number of the square they choose.
-
The first player who gets 3 of his/her marks in a row (up, down, across, or diagonally) is the winner.
-
When all 9 squares are full, the game is over. If no player has 3 marks in a row, the game ends in a draw.
If you want extra information about the game rules, check this link from Wikipedia
👤 Safa Aballagh
- GitHub: @Safafa
- Twitter: @safa aballagh
- LinkedIn: Aballagh Safa
👤 Aleksandar Ivezic
- GitHub: @Aleksandar Ivezic
- Twitter: @AIvezic
- LinkedIn: Aleksandar Ivezic
Contributions, issues, and feature requests are welcome!
Feel free to check the issues page.
- This project was inspired by Microverse
Give a ⭐️ if you like this project!