Tic Tac Toe is a simple game made with ruby and the usage of object oriented programming. The game instructions can be found below
- Ruby
To get a local copy up and running follow these simple example steps.
- Clone the repo by running
git clone
https://github.com/Deepakdanger/TIC_TAC_TOE.git Or download the zip folder - Run
cd
TIC_TAC_TOE in the terminal - Make sure you have ruby installed locally run
ruby -v
- To start the game run
bin/main.rb
in the terminal
-
The game is played on a grid that is 3 X 3 squares.
-
Player 1 is assigned "X" and Player 2 is assigned "0".
-
Both players take turns choosing a board number position and their marks will replace the numbers on the board
-
The first player to get 3 of the marks in a row (up, down, across, or diagonally) is the winner.
-
When all 9 squares are replaced with the signs, the game is over. If no player has 3 marks in a row, the game ends in a tie.
$ gem install rspec
- To Check board:-
rspec spec/spec_board.rb
- To Check player:-
rspec spec/spec_player.rb
- To Check logic:-
rspec spec/spec_logic.rb
👤 Olaoluwa Soladoye
- Twitter: @_laoluwa
- GitHub: @crappypapa
👤 Deepak Kumar
- GitHub: @Deepakdanger
Contributions, issues, and feature requests are welcome!
Feel free to check the issues page.
Give a ⭐️ if you like this project!
- Microverse
- The Odin Project
This project is MIT licensed.