This game is a virtual implementation of the classic tic-tac-toe game.
All public class methods tested with RSpec.
-
The game is played on a grid that's 3 squares by 3 squares.
-
You are X, your friend is O. Players take turns putting their marks in empty squares.
-
The first player to get 3 of her marks in a row (up, down, across, or diagonally) is the winner.
-
When all 9 squares are full, the game is over. If no player has 3 marks in a row, the game ends in a tie.
-
In this virtual implementation, you and your friend can place a mark by selecting from the numbers 1 to 9 when prompted. This is illustrated below:
- A winning position would like the image below at the end. As soon as someone gets three of their marks in a row, the game ends.
For a detailed explanation, please have a look at this guide.
- You can quickly test and play this game by using the live link below. Once the link is opened, pressing run on the top of the page will start the game. Demo Link Milestone-4
- Ruby
- RSpec
To get a local copy up and running follow these steps:
- Ruby installed on local machine: Please go to this link if you need to install ruby
- RSpec
- Fork/Clone this project to your local machine
- Run in your terminal using:
- Run
rspec
in the terminal of your root directory to run the described tests
"ruby <location_of_repo>/bin/main.rb"
👤 Ikraam Ghoor
- Github: @ikraamg
- Twitter: @GhoorIkraam
- LinkedIn: isghoor
- Email: consult.ikraam@gmail.com
👤 Kubilay Caglayan
- Github: @kblycaglayan
- Twitter: @kbcaglayan
- LinkedIn: Kubilay
- Email: kblycaglayan@gmail.com
Contributions, issues and feature requests are welcome!
Feel free to check the issues page
Start by:
- Forking the project
- Cloning the project to your local machine
cd
into the project directory- Run
git checkout -b your-branch-name
- Make your contributions
- Push your branch up to your forked repository
- Open a Pull Request with a detailed description to the development(or master if not available) branch of the original project for a review
Give a ⭐️ if you like this project!
- The Odin project for the project plan
This project is MIT licensed