Tic Tac Toe Run on Repl.it

Command line based Tic Tac Toe game build with Ruby

cover

Getting Started

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

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

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 their prefered symbol for use to mark the tiles
  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

Clean Up

if you are done playing the game and want to clean all the artifacts created, run this command on the root directory of the project ./reset.sh

Troubleshooting

  1. /bin/bash^M: bad interpreter: No such file or directory when running ./setup.sh run the following command on the root directory of project

    sed -i -e 's/\r$//' setup.sh reset.sh

Authors

👤 Mikael Araya

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