RE: RE: Snake3D: Released Version 1.0 containing more features and bug fixes. [Repost]
You are viewing a single comment's thread from:

RE: Snake3D: Released Version 1.0 containing more features and bug fixes. [Repost]

Words
138
Reading
1 min
Listen
Play
7y

Thank you for your contribution! Excellent/creative idea to bring the classic snake game to 3D.

  1. I would expect unit tests to cover the behavior of snake movements and others.
  2. 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, the seg. 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.
  3. 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.

[utopian-moderator]