This game is a virtual representation of the classic Tic-Tac-Toe game.
All public class methods are tested with RSpec.
Explore the docs »
Report Bug
·
Request Feature
- The game is played on a grid that is 3 by 3 squares.
- It is a game of two players that use X and O to mark moves in empty squares.
- The first player who succeeds in placing three of their marks in a horizontal, vertical, or diagonal row is the winner.
- The game is over when all 9 squares are full. If no player has 3 marks in a row, the game ends in a tie.
- Below is a virtual implementation where marks can be placed by selecting from numbers 1 to 9 when prompted.
- 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.
Ruby installed on local machine
Text editor (preferably: VSCode, Atom, Sublime)
- If you have installed
Ruby
on your machine: Clone the project into your local machine usinggit clone
command or download the zip file. Go into the project directory usingcd directory name
command. Open your terminal and typebin/main.rb
command. Enter players' names, select the letters which players play with. On the displayed board choose the cells by numbers between 1 and 9 to mark your selected letter ('X' or 'O'). - If you have not installed
Ruby
, please, installRuby
and repeat step 1. - Run
rspec
in the terminal of your root directory to run the described tests or runrspec --format doc
to see a more detailed description of the written tests.
Contributions, issues and feature requests are welcome! 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 branch of the original project for a review
This project was built using these technologies.
- Ruby
- RSpec
- Visual Studio Code
👤 Prajwal Thapa
- LinkedIn: Prazwalthapa
- GitHub: @praz99
- E-mail: t.prazwal@gmail.com
👤 Glory David
- LinkedIn: Glorydavid
- GitHub: @glowreeyah
- E-mail: glodave99@gmail.com
- Twitter: @gloweeeyah
👤 Marylene Sawyer
- Github: @Bluette1
- Twitter: @MaryleneSawyer
- Linkedin: Marylene Sawyer
Give a ⭐️ if you like this project!
- The Odin Project
- Microverse