92
xkcd #3125: Snake-in-the-Box Problem
(imgs.xkcd.com)
A community for a webcomic of romance, sarcasm, math, and language.
Either I'm misunderstanding the problem or a length of 8 is possible.
Edit: found my mistake, far left edge has two non-consecutive segments on adjacent corners. Leaving this up in case anyone else tries for a better score.
Unless your snake is an ouroboros, I don't think folks will count the head and tail as consecutive
The head and tail aren't adjacent if you only look at my blue line and not the original. But my attempt fails due to the far left edge.
I'm just nodding along and hoping no one notices i don't know what's happening