- Ruby
- Rubocop
This game is playable in your Terminal/Command Shell. To get a local copy up and running follow the steps below.
- Open your terminal
- Clone this project running this command in your Terminal: git clone https://github.com/anewman15/ruby-tic-tac-toe.git
- Run bin/main.rb in your terminal to start the game!
- The map of the Tic Tac Toe board is shown with cell numbers.
- When prompted, enter the names of Player 1 and Player 2.
- Player 1 will be assigned the "X". And Player 2 will be assigned "O".
- Player 1 will start the game.
- Player 1 will enter the cell number where s\he wants to place "X". Then the turn will move to Player 2.
- Then Player 2 will enter the cell number where s\he wants to place "O". Then the turn will move to Player 1.
- You are allowed to enter only the value of the cells where you want to place your move.
- The first person to get 3 of their moves in a row, column or diagonal will be the winner!
- If you can't get a win after all cells are filled, the game will be draw.
Repl.it Demo Link. Cick the "run" button
👤 Abdullah Numan
- Github: @anewman15
- Twitter: @aanuman15
- Linkedin: aanuman15
👤 Tendongze Godson
- Github: @tGodson
- Twitter: @Godson
- Linkedin: tendongze95
Contributions, issues and feature requests are welcome! Feel free to check the issues page.
Give a ⭐️ if you like this project!