Two players Tic Tac Toe game.
- Click the green button "Run"
- Insert player one's name
- Insert player two's name
- Player one is X
- Player two is O
- Player one starts by selecting a valid number from 1 to 9 to place his mark instead of the selected number
- Player two selects after. Trying to prevent player one to place his marks in a pattern
-
The player has to place his mark in 3 slots side by side in the following patters:
-
(1) If any row
-
X X X
-
4 5 6
-
7 8 9
-
(2) If any column
-
X 2 3
-
X 5 6
-
X 8 9
-
(3) If any diagonal
-
X 2 3
-
4 X 6
-
7 8 X
-
The same thing applies to player two (O)
- The game draw if the two players marked the 9 slots in the board without one of them completes one of the previous patterns.
- Ruby
To get a local copy of the repository please run the following commands on your terminal:
$ git clone https://github.com/MahmoudBakr23/Tic-Tac-Toe.git
$ cd Tic-Tac-Toe
👤 Mahmoud
-
Github: @MahmoudBakr23
-
Linkedin : Mahmoud Bakr
-
Email: [email protected]
👤 Muhammad
-
Github: @talhawaqar
-
Linkedin: @Muhammad Talha Waqar
-
Twitter: @MuhammadTalhaW4
-
email: ([email protected])
-
email: ([email protected])
👤 Mugirase Emmanuel
-
Github: @descholar-ceo
-
Twitter: @descholar3
-
Linkedin: MUGIRASE Emmanuel
Contributions, issues and feature requests are welcome!
Give a ⭐️ if you like this project!
- Microverse
- The Odin Project