Skip to content

Latest commit

 

History

History
57 lines (36 loc) · 2.09 KB

README.md

File metadata and controls

57 lines (36 loc) · 2.09 KB

Tic Tac Toe

Command line based Tic Tac Toe game built with Ruby

Getting Started

To get a local copy up and running follow these simple example steps.

  • Clone or download this repository to your local workstation.
  • cd into the tic-tac-toe folder
  • Run 'bin/main.rb' in your terminal to start the game.

Prerequisites

Since all the code is written using ruby Ruby Runtime >= 1.9 ruby is required to interpret the code. if you don't have ruby runtime installed on your computer follow the instruction for your specific operating system on the official installation guide

Usage

  • Run 'bin/main.rb' in your terminal to start the game.
  • Next you will be promted to enter each players name and each player will be assigned a symbol to use in the game.
  • Now you are ready to play the game

Game Rules

  1. The game is played on a grid that's 3 * 3 square of tiles
  2. Each player registers into the game by providing his/her name and then a symbol will be assigned them.
  3. First player to get 3 of his/her marks in a row (horizontally, Vertically or diagonally) is the winner.
  4. When all 9 tiles are full but if no player has 3 marks in a row, the game ends in a tie.
  5. After each game, you will be asked to enter 'Y' to play the game again. Entering any other key ends the game.

Author

👤 Samuel Ebeagu

👤 Christopher Amanor

🤝 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!

📝 License

This project is MIT licensed.