This is just using the framework that I made for the exercise. The students didn't have to do any Crazy IO stuff. You can see the parts under "Aufgabe" here, which is what they were supposed to code: https://github.com/def-/gifstream/blob/master/SnakeFinished....
Exercises in German here: https://github.com/def-/gifstream/blob/master/Aufgabe.pdf