Skip to content

We are going to build a Tic-Tac-Toe game using Ruby

Notifications You must be signed in to change notification settings

Haywhizzz/Tic-Tac-Toe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tic-Tac-Toe

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.

Status Github Issues GitHub2 Pull Requests

How To Run

  • Clone Tic Tac Toe
  • Open Folder
  • Run bin/main.rb
  • Enjoy the game!

How To Play

  • 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

screenshot

Built With

  • Ruby
  • VS Code
  • Windows

Live Demo Link

👤 Author

👤 Author

🤝 Contributing

Contributions, issues and feature requests are welcome!

Feel free to check the issues page.

Show your support

Give a ⭐️ if you like this project!

Acknowledgments

  • Hat tip to anyone whose code was used
  • Inspiration
  • etc

📝 License

This project has no license

About

We are going to build a Tic-Tac-Toe game using Ruby

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages