Skip to content

MarcusAl/TicTacToe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

133 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Issues Followers Stars Pull Requests Last Commit

Tic Tac Toe

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

GIF

Built With Ruby

Ruby

Prerequisites

Ruby 2.6 (Or later)

How to Test for Errors

  1. Install RSpec Rspec Gem
  2. Access the game folder in the terminal
  3. Run RSpec
$ rspec
  1. Rspec will output any errors found

Getting Started

Live Link

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
  1. Player 1 and Player 2 can enter their desired usernames
  2. Press enter to roll the dice
  3. The game chooses a player to go first, and who is X or O
  4. The game will ask each player for their input to allocate they're target for the board
  5. Both players will continually take turns
  6. 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

Contributing

Contributions, issues, and feature requests are welcome!

Feel free to check the issues page

📝 License

This project is MIT licensed.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages