Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nSnake hangs when eating the last fruit #23

Open
Edahro opened this issue Dec 18, 2017 · 2 comments
Open

nSnake hangs when eating the last fruit #23

Edahro opened this issue Dec 18, 2017 · 2 comments

Comments

@Edahro
Copy link

Edahro commented Dec 18, 2017

I just wanted to see what happens, when the whole field is full of snake. So I cranked up the number fruits to 99, set starting speed to 2, switched on teleport and chose maze size small with no random walls. Then I started arcade mode and ate up all fruits, until the snake took up nearly the whole field. But when trying to eat the last fruit, the game just froze and started using up one CPU core (100%).

End position:

''''''''''''''''''''''''''''''''''''''''
'oooooooooooooooooooooooooooooooooooooo'
'ooooooooooooooooooooooooooooo@$ooooooo'
'oooooooooooooooooooooooooooooooooooooo'
'oooooooooooooooooooooooooooooooooooooo'
'oooooooooooooooooooooooooooooooooooooo'
'oooooooooooooooooooooooooooooooooooooo'
'oooooooooooooooooooooooooooooooooooooo'
'oooooooooooooooooooooooooooooooooooooo'
''''''''''''''''''''''''''''''''''''''''

(Score: 2604)

@ViLXDRYAD
Copy link

happened to me too, i actually think is an unhandled game logic situation where the fruit must be teleported somewhere before advancing but either the fruit can't be teleported above the snake, or it teleports somewhere on the snake body making the snake "eat" it once more without being able to place it anywhere nor keeping with the game loop (sometimes i receive a lot of points when eating one fruit doing exactly as the OP)

lrrinaudo added a commit to lrrinaudo/nSnake that referenced this issue Jun 28, 2018
martin-ramos added a commit to martin-ramos/nSnake that referenced this issue Jul 4, 2018
@fedorovenskiy
Copy link

I have the same issue
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants