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

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

Awesome Lists containing this project

README

          

# FreeSnaky

![FreeSnaky](doc/screenshot.png)

## 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"
```