A modern, cross-platform Tic-Tac-Toe game written in Go using Ebitengine.
Explore the docs »
View Demo
·
Report Bug
·
Request Feature
Table of Contents
Gonnect Max is a robust implementation of the classic Tic-Tac-Toe game, engineered with Go and the Ebitengine 2D game library. It showcases how to build a scalable, cross-platform game with a responsive UI, AI opponents, and WebAssembly support for browser-based play.
Key features:
- Cross-Platform: Runs natively on desktop (Linux, Windows, macOS) and in the browser via WebAssembly.
- AI Opponents: Challenge yourself against AI algorithms (Minimax implementation).
- Responsive UI: Window resizing support with a layout that adapts to dimensions.
- Clean Architecture: Structured codebase separating game logic, UI, and screen management.
To get a local copy up and running, follow these simple steps.
- Go 1.25 or higher
# Verify your go version go version
- Clone the repo
git clone https://github.com/swaiku/TicTacGo.git
- Navigate to the project directory
cd TicTacGo - Install dependencies
go mod tidy
- Run the game
go run .
To build the game for the web:
- Run the build script:
./scripts/build_wasm.sh
- Serve the
distdirectory using a local web server (e.g., python or go-based server).
Once the game is launched:
- Main Menu: You have three options,
Quick Localthat allow you to play again another player,Quick vs AIthat allow you to play against an hard AI andCustomizethat allow you to change settings like board size or number and type of player. - Gameplay: Basically a tic tac toe really customizable.
- Objective: Align marks in a row, column, or diagonal to win.
- Basic Game Logic
- UI Implementation (Ebitengine)
- more generalized ui system
- AI Opponent (Minimax)
- implements more AI for more diffculties
- WebAssembly Support
- Network Multiplayer using libp2p
See the open issues for a full list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
Distributed under the MIT License. See LICENSE for more information.
Project Link: https://github.com/swaiku/TicTacGo
- Ebitengine - A dead simple 2D game library for Go.
- Best-README-Template
This project has been developped in collaboration with ZePyLaw 🤍