tvl-depot/users/grfn/xanthous
Griffin Smith e9c3d2f6d9 feat(gs/mugwump): Run xanthous server
Add a nixos module for running the xanthous server in a docker
container, and install it on mugwump including a prometheus scrape
config.

Change-Id: Ifeb315845b7eef2ee33af98fa3f71acdd3d9fe6b
Reviewed-on: https://cl.tvl.fyi/c/depot/+/3812
Reviewed-by: grfn <grfn@gws.fyi>
Tested-by: BuildkiteCI
2021-11-07 23:02:23 +00:00
..
.github refactor(users/glittershark): Rename to grfn 2021-04-12 14:45:51 +00:00
app feat(gs/xanthous): Allow disabling saving 2021-11-07 21:05:39 +00:00
bench refactor(users/glittershark): Rename to grfn 2021-04-12 14:45:51 +00:00
build refactor(users/glittershark): Rename to grfn 2021-04-12 14:45:51 +00:00
server feat(gs/mugwump): Run xanthous server 2021-11-07 23:02:23 +00:00
src feat(gs/xanthous): Allow disabling saving 2021-11-07 21:05:39 +00:00
test fix(gs/xanthous): Fix numAliveNeighbors{,M} on the edge 2021-11-06 17:34:46 +00:00
.envrc refactor(users/glittershark): Rename to grfn 2021-04-12 14:45:51 +00:00
.gitignore refactor(users/glittershark): Rename to grfn 2021-04-12 14:45:51 +00:00
default.nix feat(gs/xanthous): Add SSH server application 2021-11-07 21:05:39 +00:00
hie.yaml fix(gs/xanthous): Update hie.yaml for new app/ directory 2021-11-06 15:52:02 +00:00
LICENSE refactor(users/glittershark): Rename to grfn 2021-04-12 14:45:51 +00:00
nixpkgs.nix refactor(users/glittershark): Rename to grfn 2021-04-12 14:45:51 +00:00
package.yaml refactor(grfn/xanthous): avoid unnecessary recompilation 2021-09-11 16:00:12 +00:00
pkg.nix feat(xanthous): Add a generator for random english syllables 2021-06-13 01:24:47 +00:00
README.org refactor(users/glittershark): Rename to grfn 2021-04-12 14:45:51 +00:00
Setup.hs refactor(users/glittershark): Rename to grfn 2021-04-12 14:45:51 +00:00
shell.nix feat(xanthous): Install qpdf in the shell 2021-06-18 17:51:43 +00:00
xanthous.cabal feat(gs/xanthous): Allow throwing rocks 2021-10-30 17:16:21 +00:00

Xanthous

Building

$ nix build

Running

$ ./result/bin/xanthous [--help]

Keyboard commands

Keyboard commands are currently undocumented, but can be found in [this file. Movement uses the nethack-esque hjklybnu.

Development

Use lorri, or run everything in a nix-shell

# Build (for dev)
$ cabal new-build

# Run the game
$ cabal new-run xanthous

# Run tests
$ cabal new-run test

# Run a repl
$ cabal new-repl