Skip to content

DziedzicGrzegorz/Tic-Tac-Toe

Repository files navigation

Tic-Tac-Toe Game

This is a Tic-Tac-Toe game implemented in Go with support for both local and TCP multiplayer modes. Follow the instructions below to clone, build, and run the project.

Libraries Used

Table of Contents

  • Libraries Used
  • Cloning the Repository
  • Installing the Dependencies
  • Running the Project
  • CI/CD with GoReleaser
  • Installation via Homebrew

Cloning the Repository

To clone the repository, run the following command in your terminal:

git clone https://github.com/dziedzicgrzegorz/Tic-Tac-Toe.git
cd Tic-Tac-Toe

Installing the dependencies

go mod vendor

go mod vendor is a command used in Go to create a vendor directory in your project, which will include all the dependencies specified in your go.mod file. This command copies the dependencies from the module cache to the vendor directory, making them available for version control and ensuring that your project can be built with the exact versions of dependencies you specified.

Building the Project

To build the project, use the provided Makefile:

make build

This will compile the Go code and create the binary.

Running the Project

To run the project, use the following command:

make all

This will run all the "build install run "

Linting the Code

To lint the code, use:

make lint

CI/CD with GoReleaser

This project uses GoReleaser to automate the release process. When you push a new tag to the repository, GoReleaser will create a new release and publish it to Homebrew Please make sure you have filled in all the details (repository name and GitHub Token)

This will run the linter to check for code quality issues.

Installation via Homebrew

You can also install the Tic-Tac-Toe game using Homebrew. First, make sure you have Homebrew installed. Then run the following command:

brew tap dziedzicgrzegorz/tic-tac-toe
brew install dziedzicgrzegorz

Once installed, you can run the game with:

Tic-Tac-Toe

brew-install

Here's a screenshot from the game:

TCP

Additional Information

Official golang Website

  • Ensure you have Go installed on your machine. You can download it from the official Go website.

Feel free to open issues or contribute to the project by submitting pull requests.

Happy coding!

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published