https://github.com/morucci/freesnaky
A Snake game with a client/server mode
https://github.com/morucci/freesnaky
game haskell network-game snake snake-game terminal-game
Last synced: 4 days ago
JSON representation
A Snake game with a client/server mode
- Host: GitHub
- URL: https://github.com/morucci/freesnaky
- Owner: morucci
- License: mit
- Created: 2022-01-14T14:04:05.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-09-13T21:45:25.000Z (over 3 years ago)
- Last Synced: 2025-04-21T15:12:03.695Z (9 months ago)
- Topics: game, haskell, network-game, snake, snake-game, terminal-game
- Language: Haskell
- Homepage:
- Size: 137 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# FreeSnaky

## Run with nix flakes
```
nix run github:morucci/FreeSnaky -- local --snakeName "John"
```
## Build
You need to have nix installed. Then run:
```
nix build
```
Binary is available at: result/bin/FreeSnaky
## Start a local party
```
FreeSnaky local
```
## Client / Server mode
### Start the Server
```
FreeSnaky server --bindAddress 127.0.0.1
```
### Start the Terminal Client
```
FreeSnaky client --address 127.0.0.1 --snakeName "John"
```
## Develop
You need to have nix installed.
To get a shell to develop on FreeSnaky (with ghc, cabal, hls, ghcid) run:
```
nix develop
```
To hack on the Web UI run this command to get the server restarted each time when the code change.
```
ghcid -c 'cabal repl' -r="Server.runServerLocal"
```