Skip to content

The main goal is to put into practice the main concepts of Object Oriented Programming

License

Notifications You must be signed in to change notification settings

jessicafarias/TicTacToe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TicTacToe

The main goal is to put into practice the main concepts of Object-Oriented Programming

Output

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

Demo Link

Live Demo Link.

Built With

  • Ruby
  • Rubocop

Authors

👤 Jessica Farias

👤 Caleb Apronti

Getting Started

To get a local copy up and running follow these simple example steps.

  1. Open the terminal command line window
  2. git clone https://github.com/jessicafarias/TicTacToe.git
  3. Enter bin/main.rb to start the game.

Instruction

  1. 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
  2. Choose charater a to i to play the game.
  3. When you win or lose you can choose to continue or end the game.
  4. You win when 3 of your symbol align vertically or horizontally and or diagonally.

🤝 Contributing

Contributions, issues and feature requests are welcome!

Feel free to check the Issue page.

Show your support

Give a ⭐️ if you like this project!

📝 License

This project is MIT licensed.

About

The main goal is to put into practice the main concepts of Object Oriented Programming

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages