rrliang / snake

CCSU final project
1 stars 1 forks source link

snake gets buggy with more and more size #4

Closed rrliang closed 2 years ago

rrliang commented 2 years ago

-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

rrliang commented 2 years ago

Try instead of malloc() and ralloc(), simply initializing the snakebody arrays the winning snake size (terminal perimeter/2)

Joseph-Lumpkin commented 2 years ago

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

Joseph-Lumpkin commented 2 years ago

Verified the program is no longer exhibiting this behavior.