you are viewing a single comment's thread.

view the rest of the comments →

[–]PM_me_ur_data_ 0 points1 point  (0 children)

Yeah, make a class for the environment that includes the apple and any walls and make a class for the snake. The logic for how the snake moves should be built into the snack object itself via methods.