Words
138
Reading
1 min
Listen
Play
7y
Thank you for your contribution! Excellent/creative idea to bring the classic snake game to 3D.
- I would expect unit tests to cover the behavior of snake movements and others.
- I think you can simplify the logics of
move()a lot if you use a double-ended queue to represent the body, in your case, theseg. Read more details at: How to Design a Snake Game? i.e. you don't move the tails, you pop one from tail, and add a new one to the front. - many magic numbers need to be defined as constants.
Your contribution has been evaluated according to Utopian policies and guidelines, as well as a predefined set of questions pertaining to the category.
To view those questions and the relevant answers related to your post, click here.
Need help? Chat with us on Discord.
RE: Snake3D: Released Version 1.0 containing more features and bug fixes. [Repost]