Explore the docs »
Request Feature
Tic Tac Toe is a fun game most people know since the beggining of time. The rules are really simple.
There are 2 players, one plays with token "x" and one plays with token "o" There is a board formed by 9 boxes Each player gets a turn and selects a box where they want to place their token. The first player to get 3 tokens aligned in vertical, horizontal or diagonal line wins!.
In this project, we created a tic-tac-toe game that can be played via the command line. For the implementation of the game we decided to put a number tag from 1 to 9 to each box so users will select a number and their token will be placed in that box. When 3 tokens are aligned, the game will stop and declare a winner.
After each turn, there will be an array displaying the available boxes to choose from. Once the box has been set, it can't be changed, so choose wisely!.
Happy tic-tac-toe games!
Starting date October 31st Send to Code Review November 1st
For more details about the Project and it's requirements go to The Odin Project
To get a local copy up and running follow these simple steps.
- Clone or fork the repo in the directory of your choice https://github.com/camfilho/oop-tic-tac-toe
- Navigate to the folder containing the repo in your terminal and enter (cd oop-tic-tac-toe/bin/)
- Run the game by typing (
./main.rb
) - Follow the onscreen instructions and Have fun!
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
No licenses required as project was developed in educational eviroment.
Luis Puente - @mkezmkez Carlos De Medeiros @camfilho Project Link: https://github.com/camfilho/oop-tic-tac-toe