Closed cyberpirate92 closed 7 years ago
The first collectible item consumed is not getting added to the trail.
This is because initially the size of the snake is just 1, hence the head and the tail nodes are the same, leading to an edge case, which needs to be handled properly.
The first collectible item consumed is not getting added to the trail.
This is because initially the size of the snake is just 1, hence the head and the tail nodes are the same, leading to an edge case, which needs to be handled properly.