Closed rrliang closed 2 years ago
Try instead of malloc() and ralloc(), simply initializing the snakebody arrays the winning snake size (terminal perimeter/2)
I believe this concern was addressed in some of the recent major refactoring I've performed. Is the program still exhibiting the buggy behavior?
Not sure if it was related to the changes in one of these commits: 0a82e2107637aa8102a9a922c229911f9ae12aa6 cfa14efcd4b2e0877299693c2c0e816a2b890406 995a8ad1f4dcc60984dd686c5ea8a6b210b586c8 (Most Likely Candidate) feddbc9f938fd968f5ac6eac75b16ad4d58a1c0a
Verified the program is no longer exhibiting this behavior.
-this could be due to speed going too fast -could be because realloc every time snake changes -ending message does not appear due to this bug