Bot gets stuck trying to eat a single piece.
Potential solutions:
Do we have currentBotAngle detection?
We don't. The bot is currently not working with angles, and that is something we should implement...
Needs #22
maybe it checks if a food is close to it and if it hasn't been eaten for a certain amount of times it chooses a new food? @FliiFe
@Classicanon That is more of a workaround than a real fix. Could temporarily works, but @ErmiyaEskandary and I are working on angles.
@FliiFe yea but at least it would work until you and @ErmiyaEskandary get angles working i really should learn JavaScript so i can at least help with things
@Classicanon Help on logic is still really helpful. For example, I'm almost sure no one in the team thought of that.
So, assuming we have angles working. Should we avoid food on the sides, or use only the food in front of the bot ? Please see this for visual representation of my question.
I would say go only after food in front as that would help with clustering food and with eating food in a straight line without zigzagging constantly from food to food e.g when a snake dies
Who agrees ?
I do. :)
@FliiFe I think it needs to be a combination of angle and distance.
For example:
@dracco1993 Note taken.
Please read #22. Angles will not be implemented anymore. We need another way to fix this.
Ideas ?
@Classicanon maybe it checks if a food is close to it and if it hasn't been eaten for a certain amount of times it chooses a new food?
or sideways after (for example) 3 circles?
@Seple These are workarounds. I am working on this.
@FliiFe Thank you! Your band is magnificent!
@Seple band ?
@FliiFe I like your visualization, but I had a thought while looking at it.

Really the snake is not bounded by straight angles, but continuously curved angles -- whatever is the tightest possible turn the snake can make at its present size.
Thank you! Your band is magnificent!
*band = group dewelopers
@ChadSki That's a great idea !
I will first implement the angle version, as it is almost finished.
Would that work ? Snake can take food behind, on the sides, etc, without getting stuck circling food

Wow. Look how far we came...
We were finally able to fix one of the bot's very first bugs...
Pat on the back to those who contributed.
^
Most helpful comment
Wow. Look how far we came...
We were finally able to fix one of the bot's very first bugs...
Pat on the back to those who contributed.