Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/thehxdev/goess

Simple number guessing game through TCP
https://github.com/thehxdev/goess

go golang network tcp

Last synced: 30 days ago
JSON representation

Simple number guessing game through TCP

Awesome Lists containing this project

README

        

# Goess
Simple number guessing game through TCP.
Just to practice and learn network programming.

## Run
To run the server:
```bash
go run .
```

## Connect to server
To connect as clinet use netcat (`nc` command):
```bash
nc 127.0.0.1 8000
```

Then server responds with:
```
Welcome to goess game!
Guess a number between 1 and 100 (Both ends are included)
You only have 10 guesses!

Guess 1 =>
```

Happy gaming :)