Assuming a square NxNmatrix where N is an odd number, it looks like:
Find the center (x,y) where x and y equal N/2 rounded down. Or N>>1;
Go Up One.
Go Right One.
Go Down Two.
Go Left Two.
Go Up Three.
Go Right Three.
...
Happy coding.
rahulraj9 commented: help him +0
Begginnerdev commented: LOL'd at "Vote for Pedro." +0
PeTo. commented: sorry but I dont understand ur 2nd point what do you mean by my snake is basing its movement on user input. What it should be doing is basing its DIRECTION on user input ? can u show me an example , also my snake is leaving some points behind I tried to +0
codeorder commented: .don't do it man, it's not worth it.. xD +0