The apple can spawn in the body of the snake. The snake body fully covers it until the last body segment moves off of it. This is an issue at towards the end of the game when the snake takes up most of the play area and is more likely to spawn in the body than not. I don't really know how this effects actual gameplay though because I'm using this code for a neural network to play snake.
The apple can spawn in the body of the snake. The snake body fully covers it until the last body segment moves off of it. This is an issue at towards the end of the game when the snake takes up most of the play area and is more likely to spawn in the body than not. I don't really know how this effects actual gameplay though because I'm using this code for a neural network to play snake.