Built with Ruby and playable in the command line - the classic Tic-Tac-Toe Game!
This Tic-Tack-Toe game was built for the command line and it uses the Ruby Daru gem to build the board.
- Ruby
- Ruby Daru Gem
To get a local copy up and running follow these simple example steps.
Clone this project running the following command in your terminal: git clone git@github.com:Azeem838/tic-tac-toe.git
Navigate to the folder where the project has been cloned
Install the Daru Gem by running gem install daru
- Just run
bin/main.rb
in your terminal to start the game! - When prompted, enter the names of Player1 and Player2.
- When prompted, select who is going to play first.
- A 3x3 game board is shown with numbers.
- Enter the number which corresponds to the point where you will play.
- Ignore the numbers on the left most side and the letters at the top of the board.
- The players name will show up when it is their turn to play.
- Player 1 and Player 2 will use symbol "X" and "Y" respectively.
- The first person to get 3 of their symbols in a row is the winner!
- The 3 symbols have to be in a either a horizontal, a vertical or diagonal row to win.
- 3 Symbols scattered across the board will not count as a win.
👤 Njgouh Abdoulaye Razak
- Github: @AbdoulayeRazak
👤 Azeem Ahmed
- Github: @Azeem838
Contributions, issues and feature requests are welcome!
Feel free to check the issues page.
Give a ⭐️ if you like this project!
This project is MIT licensed.