Tic-tac-toe is a Ruby project to demonstrate OOP design using Ruby by developing a playable tic-tac-toe game.
- Ruby programming language, in accordance with the following principles:
- OOP (Object Oriented Principles)
- SRP (Single Responsibility Principle)
Tic-tac-toe, or Xs and Os, is a game for two players who take turns marking the spaces in a 3Γ3 grid using an X or an O. The player who succeeds in placing three of their marks in a horizontal, vertical, or diagonal row is the winner.
The following example game is won by the first player, X:
To get a local copy up and running follow these simple example steps:
A computer running Windows, Linux or MacOS
# Windows
Download and run RubyInstaller @ https://rubyinstaller.org/
# Mac/Linux
Open Terminal and type: install ruby
Copy all the project files to a folder.
Open Terminal and change directory to the project folder
Type: main.rb or bin/main.rb
Follow the instructions as directed by the game.
Enjoy!
Close the Terminal window to close or exit once you finish a game. Repe
π€ Ricardo
- Github: @ricardo123321
π€ Paul Omondi
- Github: @paulo-techie
Contributions, issues and feature requests are welcome!
Feel free to check the issues page.
Give a βοΈ if you like this project!
- Thanks to Microverse and the wonderful reviewers who have guided us to the completion of this project
This project is MIT licensed.