The Snake hole will go live in approximately 33 hours. Why not try and solve it ahead of time?
Gray Code Encoder in all languages in chars.