Closed dungpt3003 closed 4 years ago
It's surprising that you can find such a bug because the game should end shortly after the target is achieved and it's difficult to notice. Also, the possibility is so small. Thanks for your contribution!
@Rapiz1 You are welcome. I played your game with my friends and we are all impressed by your work.
Bug description:
When the length of the snake exceeds the GAME_WIN_NUM, the screen shows negative number of heroes to find.
Steps to reproduce:
When your snake length equals to GAME_WIN_NUM - 1
Two or more heroes join the snake at nearly same time
Fix
Never show negative number in task text, show zero whenever it reaches the GAME_WIN_NUM.