The main goal is to put into practice the main concepts of Object-Oriented Programming
Welcome to TicTacToe
Who is the first player? #player1 type your name
You're welcome name1 Your symbol is X
Who is the second player? #player2 type your name
You're welcome name1 Your symbol is O
__a_|_b_|_c__
__d_|_e_|_f__
g | h | i
__X_|_O_|_X__
__O_|_X_|_O__
g | h | X
name1 (Player 1) wins
RESULTS= P1=1 vs P2=0
Do you want rematch Yes or No: # write 'yes' to play again
- Ruby
- Rubocop
👤 Jessica Farias
- Github: jessicafarias
- Twitter: @FariasRosado
- Linkedin: jessica-michelle-farias-rosado
👤 Caleb Apronti
- Github: @chindrop
- Twitter: @chin_lee5
- Linkedin: Caleb Apronti
To get a local copy up and running follow these simple example steps.
- Open the terminal command line window
git clone https://github.com/jessicafarias/TicTacToe.git
- Enter bin/main.rb to start the game.
- Enter your and your partner's name in the terminal when you start the game. Player 1 is automatically assign X symbol and O to player 2
- Choose charater a to i to play the game.
- When you win or lose you can choose to continue or end the game.
- You win when 3 of your symbol align vertically or horizontally and or diagonally.
Contributions, issues and feature requests are welcome!
Feel free to check the Issue page.
Give a ⭐️ if you like this project!
This project is MIT licensed.