Skip to content

Project: OOP by Microverse (created with Saidov Sayyod and Hermela Fikre). Tic-tac-toe is a game for two players, X and O, who take turns marking the spaces in a 3×3 grid.

License

Notifications You must be signed in to change notification settings

MrSayyod/Tic-Tac-Toe-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tic-Tac-Toe-game

Project: OOP by Microverse [Collaborative Project] (created with Saidov Sayyod and Hermela Fikre) Tic tac toe game

Instructions and Game rules

Instructions

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.

Instructions and Game rules

Instructions

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.

Rules

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.

Built With

Ruby 2.7.1

Getting Started

Prerequisites

Ruby installed on local machine
Text editor (preferably: VSCode, Atom, Sublime)

Starting the game

  1. If you have installed Ruby on your machine: Clone the project into your local machine using git clone command or download the zip file. Go into the project directory using cd directory name command. Open your terminal and type bin/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')
  2. If you have not installed Ruby, please, install Ruby and repeat step 1.

Contributing

🤝 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.

Authors

👨‍💻 Hermela Fikre

👨‍💻 Sayyod Saidov

Attributions and Credit

Microverse curriculum and The Odin Project for the project guidelines.

Show your support!

Give a 🌟 if you like this project! 😊

📝 Copyright

Enjoy!

About

Project: OOP by Microverse (created with Saidov Sayyod and Hermela Fikre). Tic-tac-toe is a game for two players, X and O, who take turns marking the spaces in a 3×3 grid.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages