Schlangenprogrammiernacht 2020

Welcome to the 'Schlangenprogrammiernacht', a programming game initially developed for GPN19.

Everybody is invited to join! Simply create an account and start coding.

Define your own snake in C++, eat as much as you can and try not to die.

If you play this for the first time, watch the introductory talks from GPN18 and GPN19 (in German).

Start with your own server and get the code here.

Come to our #spn IRC channel on HackInt!

About this server

This server runs on a Raspberry Pi 4 with 4 GB RAM.

The Raspberry Pi is now powered from local solar power! ☀️🔋 Please note: As solar power is very dependent on the weather, this server may shut down any time. See below for details about this.

Please note that the Raspi is running at home behind my DSL connection. Therefore there may be disconnects or the uplink might be saturated. Save your code!

There is a dashboard for monitoring the game running here as well as some parameters of the system.

The highscore tables are configured to show the last 24 hours.


Let’s have some fun and try new world parameters 🤪: Almost no natural food on the field, 100% drop by killed snakes, slower decay and snake mass loss. Happy hunting!
Added highscore pages for kills and deaths
The Raspberry Pi now runs from solar power!
Launch of this server.
Initial release for the GPN19.

Details about the Solar Power

The Raspberry Pi is powered from a 50 W(pk) panel and a 12 V/100 Ah lead-acid battery. Maximum Power Point Tracking (MPPT) is applied.

The Rasberry is currently the only permanent load on the solar battery, which will manage to keep it running for about two days without sun at the current settings (see below). This is normally sufficient for uninterrupted operation in summer. However, multiple rainy days in a row will still cause downtimes.

To extend the life of my lead-acid battery, I have programmed the solar charger to disconnect any load at 12.50 V. The Raspberry Pi is configured to stop the gameserver below 12.56 V (you can still save your code at this point) and to stop all activity below 12.53 V (this includes remounting read-only). You can see the latest voltage reading on the bottom right of this page.

The server should automatically restart. If the Raspberry was switched off by the solar charger, it will be turned on again when the battery reaches 13.80 V. If it was not switched off, the software will be restarted at 13.50 V.