Skip to content

anewman15/ruby-tic-tac-toe

Repository files navigation

Tic Tac Toe Game

Game Screenshot

Game Screenshot

Built With

  • Ruby
  • Rubocop

Getting Started

This game is playable in your Terminal/Command Shell. To get a local copy up and running follow the steps below.

Deployment

  1. Open your terminal
  2. Clone this project running this command in your Terminal: git clone https://github.com/anewman15/ruby-tic-tac-toe.git

Usage

  1. Run bin/main.rb in your terminal to start the game!
  2. The map of the Tic Tac Toe board is shown with cell numbers.
  3. When prompted, enter the names of Player 1 and Player 2.
  4. Player 1 will be assigned the "X". And Player 2 will be assigned "O".
  5. Player 1 will start the game.
  6. Player 1 will enter the cell number where s\he wants to place "X". Then the turn will move to Player 2.
  7. Then Player 2 will enter the cell number where s\he wants to place "O". Then the turn will move to Player 1.

Game Rules

  1. You are allowed to enter only the value of the cells where you want to place your move.
  2. The first person to get 3 of their moves in a row, column or diagonal will be the winner!
  3. If you can't get a win after all cells are filled, the game will be draw.

Live Demo

Repl.it Demo Link. Cick the "run" button

Authors

👤 Abdullah Numan

👤 Tendongze Godson

🤝 Contributing

Contributions, issues and feature requests are welcome! Feel free to check the issues page.

Show your support

Give a ⭐️ if you like this project!

Acknowledgments

About

This is a Tic Tac Toe game developed using Ruby

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages