A game in which two players take turns putting circles and crosses on a 3x3 grid and try to get three of the same symbols following the game rules.
A command line game built in ruby
- Ruby
- Rubocop
- RSpec
- Should have ruby installed
Ruby v2.7
bundler
gem installed
- Clone the git repo
- run
bundle install
in root directory.
- Open the terminal
- cd into the program folder
- run
./bin/main.rb
- Players should enter their names
- A grid box will be displayed so the first player can pick a cell to start the game
- Players will select one cell on each turn until the game is over
- Players cannot select an ocupied cell
- It is a two players Game
- The game is played on a grid box that's 3 squares by 3 squares
- Each player has a "X" or "O" Token
- once a player get 3 marks on a row he/she is the winner
- If all 9 cells are occupied but none of the players got 3 marks in a row is a draft
To run tests you need to have RSpec installed
gem install rspec
Go into the project's root directory and execute RSpec to run the tests
rspec
👤 Imran Yousaf
- Github: @imran5644
- Twitter: @imran56444
- Linkedin: Imran Yousaf
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.