https://github.com/abdenasser/tcp-tac-toe
a peer to peer TCP tic tac toe game in plain Golang
https://github.com/abdenasser/tcp-tac-toe
Last synced: 3 months ago
JSON representation
a peer to peer TCP tic tac toe game in plain Golang
- Host: GitHub
- URL: https://github.com/abdenasser/tcp-tac-toe
- Owner: Abdenasser
- License: mit
- Created: 2024-03-28T01:20:23.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-04T16:16:48.000Z (over 1 year ago)
- Last Synced: 2025-06-12T18:21:36.316Z (4 months ago)
- Language: Go
- Homepage:
- Size: 68.4 KB
- Stars: 31
- Watchers: 3
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
Awesome Lists containing this project
README

# TCP Tic Tac Toe
A peer to peer TCP tic tac toe game in plain Golang.
## How to play
make sure you have go installed on your machine.
1. clone the repo `git clone https://github.com/Abdenasser/tcp-tac-toe.git`
2. cd into the repo `cd tcp-tac-toe`
3. run the server `go run server.go`
4. once the server is running, open two terminal windows and connect to the server using `telnet localhost 8080`
5. start playing!
## playing over the internet
if you want to play with a friend over the internet, you can use a service like [ngrok](https://ngrok.com/)
to expose your local server to the internet.1. run the server `go run server.go`
2. run ngrok `ngrok tcp 8080`
3. from nother machines, connect to the ngrok address using `telnet `
4. start playing!