Skip to content
A little snake game in Nim
Branch: master
Clone or download
Latest commit f744113 Dec 27, 2018

readme.md

Snake

A Snake game written in Nim targetting JavaScript in a web browser: http://picheta.me/snake/.

Systemd setup

Create a snake.service file in /lib/systemd/system/ (or any of the other locations described here), put this in it:

[Unit]
Description=snake
After=network.target httpd.service
Wants=network-online.target

[Service]
Environment=IPSTACK_KEY=<YOUR_IPSTACK_KEY_HERE>
Type=simple
WorkingDirectory=/home/user/dev/snake/
ExecStart=/usr/bin/stdbuf -oL /home/user/dev/snake/snake/server
Restart=always
RestartSec=2

User=dom

[Install]
WantedBy=multi-user.target
You can’t perform that action at this time.