https://github.com/marcusal/tictactoe
https://github.com/marcusal/tictactoe
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/marcusal/tictactoe
- Owner: MarcusAl
- License: mit
- Created: 2021-02-16T07:43:37.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-05-23T10:32:28.000Z (about 5 years ago)
- Last Synced: 2025-08-29T10:20:51.419Z (9 months ago)
- Language: Ruby
- Size: 358 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README





# Tic Tac Toe
In this project, we have implemented our version of Tic Tac Toe using Ruby.

## Built With Ruby

## Prerequisites
Ruby 2.6 (Or later)
## How to Test for Errors
1. Install RSpec [Rspec Gem](https://rspec.info)
2. Access the game folder in the terminal
3. Run RSpec
```
$ rspec
```
3. Rspec will output any errors found
## Getting Started
[Live Link](https://repl.it/@CacheMeIfYouCan/TicTacToe)
__Clone the repo to your local machine using the terminal__:
```
$ git clone https://github.com/marcusal/TicTacToe
```
## How to Play
1. Run game by typing in your terminal:
```
$ ruby bin/main.rb
```
2. Player 1 and Player 2 can enter their desired usernames
3. Press enter to roll the dice
4. The game chooses a player to go first, and who is X or O
5. The game will ask each player for their input to allocate they're target for the board
6. Both players will continually take turns
7. Game will stop running and announce when a winning move has been made
## Game Rules
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.
## Authors
👤 **Marcus**
- GitHub: [@CacheMeGifYouCan](https://github.com/marcusal)
- LinkedIn: [Mark Allen](https://www.linkedin.com/in/marcusa999/)
## Contributing
Contributions, issues, and feature requests are welcome!
Feel free to check the [issues page](https://github.com/marcusal/TicTacToe/issues)
## 📝 License
This project is [MIT](LICENSE) licensed.