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.
- github.com/charmbracelet/bubbles v0.18.0
- github.com/charmbracelet/bubbletea v0.26.4
- github.com/charmbracelet/lipgloss v0.11.0
- github.com/spf13/cobra v1.8.0
- Libraries Used
- Cloning the Repository
- Installing the Dependencies
- Running the Project
- CI/CD with GoReleaser
- Installation via Homebrew
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
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.
To build the project, use the provided Makefile:
make build
This will compile the Go code and create the binary.
To run the project, use the following command:
make all
This will run all the "build install run "
To lint the code, use:
make lint
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.
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
Here's a screenshot from the game:
- Ensure you have Go installed on your machine. You can download it from the official Go website.
Happy coding!