Java-Snake-Game icon indicating copy to clipboard operation
Java-Snake-Game copied to clipboard

relocateApple

Open LayneUhhhhh opened this issue 1 year ago • 2 comments

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.

LayneUhhhhh avatar Apr 15 '24 15:04 LayneUhhhhh

I'll work on this issue

jayboo414 avatar Oct 03 '24 17:10 jayboo414

Hello, I implemented a fix for this: https://github.com/janbodnar/Java-Snake-Game/pull/22

jayboo414 avatar Oct 03 '24 18:10 jayboo414