Open m93a opened 2 years ago
I'm not sure why I left the getter out - from a quick review of my code, it doesn't look like there are any problems with adding one. I can take a closer look this weekend - feel free to fork the project if you want this change sooner.
Thanks for raising this issue!
There is only a setter for
snakeGame.nextTickDirection
. However, one might want to render the head differently depending on the snake's direction to give the user visual feedback. Currently, the only way to achieve this is to keep track ofnextTickDirection
separately. Is there a reason for not including the getter too?