In this project, we have implemented our version of Tic Tac Toe using Ruby.
Ruby 2.6 (Or later)
- Install RSpec Rspec Gem
- Access the game folder in the terminal
- Run RSpec
$ rspec
- Rspec will output any errors found
Clone the repo to your local machine using the terminal:
$ git clone https://github.com/marcusal/TicTacToe
- Run game by typing in your terminal:
$ ruby bin/main.rb
- Player 1 and Player 2 can enter their desired usernames
- Press enter to roll the dice
- The game chooses a player to go first, and who is X or O
- The game will ask each player for their input to allocate they're target for the board
- Both players will continually take turns
- Game will stop running and announce when a winning move has been made
The game is played on a grid that's 3 squares by 3 squares. There is a maximum of 2 players. You are either X or O ... The first player to get 3 of her marks in a row (up, down, across, or diagonally) is the winner. When all 9 squares are full, the game is over.
Tip: Part of your strategy is trying to figure out how to get three Xs in a row. The other part is trying to figure out how to stop the computer from getting three Os in a row.
👤 Marcus
- GitHub: @CacheMeGifYouCan
- LinkedIn: Mark Allen
Contributions, issues, and feature requests are welcome!
Feel free to check the issues page
This project is MIT licensed.
