Skip to content

Multiplayer Tic-Tac-Toe game written in Golang and Fyne GUI toolkit, with websockets

License

Notifications You must be signed in to change notification settings

Longwater1234/go-tic-tac

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-tic-tac

Multiplayer tic-tac-toe game written 100% in Golang, using Fyne GUI toolkit and Websockets. Works for Windows, macOS and Linux.

Game Server

You will also need a running gameserver, available here, also written in Golang. The server is very tiny (~5MB), lightweight, and can handle lots of concurrent players without sweating your RAM or CPU. It's purely a console based program.

Screenshot

screenshot.PNG

Requirements

  • Go 1.19 or higher
  • C compiler (eg. gcc or Clang), and should be added to your PATH. Follow this quick guide
  • For Windows users, the easiest & fastest way to get GCC, is to install it from here.
  • Other OS, you can use your package manager.
  • Any graphics driver installed.

Building locally

  1. Verify your machine has the requirements listed above

  2. Install the Fyne v2 CLI: go install fyne.io/fyne/v2/cmd/fyne@latest

  3. Go to this project root directory, open terminal and enter:

    # For more flags, use: fyne package --help
    fyne package
  4. Be patient, first time build will take much longer to complete than subsequent ones.

  5. For an optimized, smaller package (50% smaller), use command below. Icon will be automatically attached.

    # Flag --id (appID) is required. See docs https://developer.fyne.io/started/distribution
    fyne package --release --id com.yourdomain.appName

Credits

Free Icon by Vlad Marin, IconFinder.

License

© 2023, Davis Tibbz. This project is MIT licensed.

Pull Requests & Contributions

Pull requests and issues are much welcome.

About

Multiplayer Tic-Tac-Toe game written in Golang and Fyne GUI toolkit, with websockets

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages