UoB-COMSM0110 / 2024-group-3

0 stars 2 forks source link

Fix bug: prevent self-collisions #64

Open chriskerrc opened 5 months ago

chriskerrc commented 5 months ago

Self-collisions where snake is moving in a circle shape should be allowed. However, currently it's possible to very quickly change direction and collide with yourself, and die, but without a visual indication of what's happened.

Possible fix: make the first three segments of the snake invulnerable to self-collision.