You are viewing a single comment's thread from:
RE: Snake3D: Released Version 1.0 containing more features and bug fixes. [Repost]
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.
Thanks for your review.
move()
where the main problem are all those checks when the head changes to another area of the cube. But thanks anyway. I'll implement it the next time I work on Snake3D.Thank you for your review, @justyy! Keep up the good work!