A peer to peer TCP tic tac toe game in plain Golang.
make sure you have go installed on your machine.
-
clone the repo
git clone https://github.com/Abdenasser/tcp-tac-toe.git
-
cd into the repo
cd tcp-tac-toe
-
run the server
go run server.go
-
once the server is running, open two terminal windows and connect to the server using
telnet localhost 8080
-
start playing!
if you want to play with a friend over the internet, you can use a service like ngrok to expose your local server to the internet.
-
run the server
go run server.go
-
run ngrok
ngrok tcp 8080
-
from nother machines, connect to the ngrok address using
telnet <ngrok_address> <ngrok_port>
-
start playing!