Tic Tac Toe is a simple two-player game in which players take turns placing their symbol (X, O, ...) on a 3x3 grid. The first player to get three of their symbols in a row (horizontally, vertically, or diagonally) wins the game.
Below is how you can use tic-tac-toe. Feel free to fork or copy them, but be aware of the limitations that this repository license implies.
You can use the following options to use tic-tac-toe:
To run tic-tac-toe, you must clone this repository with the following command:
git clone https://github.com/olooeez/tic-tac-toe.git
After cloning, you must enter the local repository using the following command:
cd tic-tac-toe
Install Ruby and Bundler on your system and run it with the command bellow:
bundler install
Finally use the command below to run the project:
ruby lib/tic_tac_toe.rb
To run the program in a docker container, clone the repository to your machine first:
git clone https://github.com/olooeez/tic-tac-toe.git
After cloning, you must enter the local repository using the following command:
cd tic-tac-toe
Then, use the command below to build the Docker image:
docker build -t olooeez/tic-tac-toe:latest .
Then, to run the image in a container, use the following command:
docker run -it --rm olooeez/tic-tac-toe:latest
To run the application in your browser, checkout the Replit version.
If you would like to contribute to this project, please feel free to open a pull request. All contributions are welcome!
This project is licensed under the MIT License. See the LICENSE file for details.