Hi guys, a beginner here. I've been trying to develop my own rendition of Snake using C++ and openGL. This is a 3D game. I have done everything from the eating of food, the 3D look, the snake's movement, EXCEPT, the growing of its tail. I have done the tail growth manually. Meaning I made lots of tails, and had it addded onto the body of the snake everytime it eats. But that kind of method is really a hassle, really complicated, since you have to make a lot of variables, etc, and it makes the code a tad longer, and the tail growth is limited! I believe that the best solution for the tail is to use a linked-list but I don't really grasp the concept and syntax of a linked-list. I've been reading a lot of books and online sources, but I still don't understand. I have learned about queues and stacks too, but I don't know how to implement it on my code. :( I've been trying so hard to implement queues for days already, and I really can't figure it out. I need your help! :(
By the way, I don't want to post the code publicly. I would appreciate if you could send me your e-mails if you want to see it. THANK YOU SO MUCH FOR YOUR HELP GUYS.