Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

When using pygame, a snake will perish while performing a u-turn if the head of the snake collides with its body. This is because in a u-turn, the snake's body overlaps with its head, causing a collision. This collision triggers the game over event and ends the game.