Project: OOP by Microverse [Collaborative Project] (created with Saidov Sayyod and Hermela Fikre)
Tic-tac-toe, noughts and crosses, or Xs and Os is a game for two players, X and O, who take turns marking the spaces in a 3×3 grid. The player who succeeds in placing three of their marks in a horizontal, vertical, or diagonal row is the winner.
Tic-tac-toe, noughts and crosses, or Xs and Os is a game for two players, X and O, who take turns marking the spaces in a 3×3 grid. The player who succeeds in placing three of their marks in a horizontal, vertical, or diagonal row is the winner.
First, you have to draw the board, which is made up of a 3 x 3 grid of squares. This means it has three rows of three squares. The first player goes with "X", you can allow the first player to decide whether he wants to go with "X"s or "O"s. These symbols will be placed on the board, in the attempt to have three of them in a row. After the first player goes, then the second player should put down his symbol, which will be different from the symbol of the first player. Keep alternating moves until one of the players has drawn a row of three symbols or until no one can win. The first player to draw three of his or her symbols in a row, whether it is horizontal, vertical, or diagonal, has won tic-tac-toe.
Ruby 2.7.1
Ruby installed on local machine
Text editor (preferably: VSCode, Atom, Sublime)
- If you have installed
Ruby
on your machine: Clone the project into your local machine usinggit clone
command or download the zip file. Go into the project directory usingcd directory name
command. Open your terminal and typebin/main.rb
command. Enter players' names, select the letters which players play with. In displayed border choose the cells by numbers between 1 and 9 to paste your select ('X' or 'O') - If you have not installed
Ruby
, please, installRuby
and repeat step 1.
🤝 Contributions, issues and feature requests are welcome! Start by:
Forking the project
Cloning the project to your local machine
cd into the project directory
Run git checkout -b your-branch-name
Make your contributions
Push your branch up to your forked repository
Open a Pull Request with a detailed description to the development branch of the original project for a review
Please feel free to contribute to any of these!
Feel free to check the issues page.
👨💻 Hermela Fikre
- Email: hermelafikre3@gmail.com
- Github: @Hermela-Fikre
- Twitter: @Hermela86529600
- Linkedin: hermela-fikre
👨💻 Sayyod Saidov
- Email: ssayyod@gmail.com
- Github: @MrSayyod
- LinkedIn: Sayyod Saidov
- Twitter: Sayyod Saidov
- Facebook: Sayyod Saidov
Microverse curriculum and The Odin Project for the project guidelines.
Show your support!
Give a 🌟 if you like this project! 😊
📝 Copyright
Enjoy!