Ruby code for tic-tac-toe Game.
Tic tac toe game consists in a 3 by 3 board and two players.
Players choose between X and O as their tokens to play.
Players take turns to play their token in a unoccupied cell.
The first player who gets three of their tokens in line wins the game.
If no player gets three tokens in line and the board is full it is a tie.
Open a bash console and type:
- git clone https://github.com/alvp01/tic-tac-toe.git
- cd tic-tac-toe
- bin/main.rb
- RUBY
- VSCode
This project contains tests made with RSpec, testing the critical methods for the game lib
folder.
The tests are contained within the spec folder game_spec.rb
.
Before running the tests make sure to install RSpec
You can run the tests by typing rspec
in the terminal, inside the root directory.
If you want to see the description of the test just write rspec --format documentation
👤 Gerónimo Morisot
- Github: @Bismarck-GM
- Twitter: @Rewritablee
- Linkedin: geronimomorisot
👤 Shingirayi Mandebvu
- Github: @simandebvu
- Twitter: @simandebvu
- Linkedin: simandebvu
Contributions, issues and feature requests are welcome!
Feel free to check the issues page.
Give a ⭐️ if you like this project!
- Microverse
This project is MIT licensed.