I'm having some trouble making my snake move :D I can move one point in any direction but the whole body of the snake is where I'm confused ,
if(a == (char) 119 || a == (char) 87 || a == 72)
{
y=y--;
gotoxy(x,y);
PrintVector(v);
}
thats works just fine if my vector consists of only one point , but other than that it doesnt work , I know if I Want its body to move right I gotta use puch_back and pop_back but I just need a little help or a hint :D another thing i'm making my loop while(input=getch()) and that makes the user presses the key " w or W or even the arrow " each time he wants to go up , I know I have to make it while(true) but it doesnt work even when I add the Sleep() , some help or hints would be very much appreciated :) thx in advance :)