/Tic-Tac-Toe

In this project, we created a copy of the tic tac toe game, played by two players using Ruby the game follows the standard rules of tic tac toe explained in the rules section.

Primary LanguageRubyMIT LicenseMIT

Tic Tac Toe

On this repository we run RSpec tests to make sure that all the logic methods work properly and give the correct outcome, we tested both positive and negative outcomes making sure it's working as intended.

Built With

  • Ruby

How to Test our project

  • First type gem install rspec

  • cd into this Project directory

  • rspec spec/logic_testing.rb

Setup

  • Install git
  • Open your local terminal for your specific OS.
  • Change the directory using the cd terminal command to a folder.
  • Run git clone (link of this repository).
  • Install Ruby, google is going to have information about how to install it on your OS.
  • cd path/to/tic-tac-toe
  • Run ruby bin/main.rb to start the game.

Tic Tac Toe's rules

  • The game start with both player choosing their names.
  • Player 1 is playing as 'X', while player 2 plays as 'O'
  • The game starts with player 1 choosing an available cell in the board and then player 2 choosing an available cell in the board
  • A player wins by getting 3 cells marked with their letter, either horizontally, vertically or diagonally
  • If none of the players is able to win before the board runs out of available squares it's declared a draw.
  • Enjoy

Authors

👤 NSABIMANA Emmanuel(testing)

👤 Leonardo L. da Paz(original project and testing)

👤 Amal Hersi(original project)

Acknowledgments

License

This project is MIT licensed.