Today, I wanted to share the improved food placement algorithm that I implemented into our Snake game.
Even though the surrounding walls have grown larger and greatly decreased the amount of free area, the piece of food still knows where it is and isn't allowed to spawn. Good food!
The reason they say to not play with your food is that it learns.
Comments