Closed iron-bergh closed 4 years ago
Resolves Issue #53
I iterate through the "snakeLength" and add all positions, except the head of the snake, to a new array. Then i am able to search the snakeArray for the hit at the body.
i hope this is enough :)
@SakshatRao please review this pull request
@harshnitk17 Pull request has been reviewed, please merge it.
Resolves Issue #53
Description
I iterate through the "snakeLength" and add all positions, except the head of the snake, to a new array. Then i am able to search the snakeArray for the hit at the body.
i hope this is enough :)