Skip to content

Latest commit

 

History

History
101 lines (58 loc) · 2.07 KB

README.md

File metadata and controls

101 lines (58 loc) · 2.07 KB

Tic Tac Toe Game Project

Two players Tic Tac Toe game.

To start

  • Click the green button "Run"
  • Insert player one's name
  • Insert player two's name
  • Player one is X
  • Player two is O

Roles

  • 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

To win

  • 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)

Draw state

  • The game draw if the two players marked the 9 slots in the board without one of them completes one of the previous patterns.

Built With

  • Ruby

Live Demo

Live Demo Link

Getting Started

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

Authors

👤 Mahmoud

👤 Muhammad

👤 Mugirase Emmanuel

�� Contributing

Contributions, issues and feature requests are welcome!

Show your support

Give a ⭐️ if you like this project!

Acknowledgments

  • Microverse
  • The Odin Project