In this project, We built a Tic Tac Toe game with Ruby. The main goal was to put into practice the main concepts of Object Oriented Programming. Particularly, classes and access to their attributes.
- Clone Tic Tac Toe
- Open Folder
- Run bin/main.rb
- Enjoy the game!
- Players take turns playing
- First turn — Player 1
- Player 1 places their token (X) in only 1 square of their choice
- Puts player 1's name and will tell that their turn
- Second turn — Player 2
- Player 2 places their token (O) in only 1 square of their choice, except they can’t touch the square that Player 1’s token already fills
- Puts player 1's name and will tell that their turn
- 3rd turn- Player 1 …. and the cycle continues until a player wins or there’s a tie game
- There are 8 winning combinations: Top row, Middle row, Bottom row, Left column, Middle column, Right column, Left diagonal, and Right diagonal
- There’s a draw when the entire board is filled with X’s and O’s but no winning combinations can be found
- Ruby
- VS Code
- Windows
👤 Author
- Github: @mcihadkurel
- Twitter: @mece_ka
- LinkedIn: @muhammed
👤 Author
- Github:@Haywhizzz
- Twitter:@Haywhizzz
- Linkedin:@Haywhizzz
Contributions, issues and feature requests are welcome!
Feel free to check the issues page.
Give a ⭐️ if you like this project!
- Hat tip to anyone whose code was used
- Inspiration
- etc
This project has no license