This is a Tic Tac Toe game all made with ruby as a project, the is made to work for 2 players, each player needs to choose on which location they want to add its mark until one of them has 3 marks on a row, and he will be declared the winner.
-
Ruby
-
VSCode
-
Terminal (Bash)
-
Linter tests
-
Git
-
Ruby
To get a local copy up and running follow these simple example steps below (from setup - installation).
Setup by following the installation instructions below :
- Open your terminal and locate on the folder you want to clone the repository.
Run the following command into your terminal:
git clone git@github.com:JAAR91/Enumerable-Methods.git
-
After running the Setup and installation right above
-
On the console type bin/main.rb
These are the rules to play the Tic-Tac-Toe👋🤓
The game consist of 2 players switching turns and marking a place on a grid that's 3
squares by 3 squares as described in the image below
+-----+-----+-----+
| 1 | 2 | 3 |
+-----+-----+-----+
| 4 | 5 | 6 |
+-----+-----+-----+
| 7 | 8 | 9 |
+-----+-----+-----+
You are X, your friend is O. The first player to get 3 of her marks in a row (up, down,
across, or diagonally) is the winner. You can win by having a line of 3 O/X. The lines
can be horizontal, vertical or diagonal in both opposite directions. You can only win if
you manage to have O or X cutting across equally either diagonally, horizonatally or
vertically, but if no one can complete a line of 3 O/X THEN it's a tie. When all 9
squares are full, the game is over
Run the following command into your terminal:
ruby bin/main.rb
👤 Eri Okereafor
- GitHub: @errea
- Twitter: @Erreakay
- LinkedIn: eri-ngozi-okereafor
👤 Jose Alberto Arriaga Ramos
- GitHub: @jaarkira
- Twitter: @91_jaar
- LinkedIn: Jose Arriaga
Contributions, issues, and feature requests are welcome!
Feel free to check the [issues page](Feel free to check the issues page.
Give a ⭐️ if you like this project!
- Thanks to Microverse and their supportive community.
- Thanks to everyone commiting in this project.
This project is MIT licensed.