Subtle backtracking bug (collision detection)

Bug #631048 reported by Tom Bell
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snakes
Invalid
Medium
Unassigned

Bug Description

When the snake is only 2 cell's in length i.e. a head and 1 body part it's impossible to end the game by running into your tail but for snakes of any greater length this is possible.

Subtle collison detection bug?

Revision history for this message
Josh Brown (joshbrown) wrote :

I hadn't noticed this before - but it could be quite noticeable for some users and will need to be removed before 1.0.

Changed in snakes-game:
importance: Undecided → Medium
milestone: none → 1.0
status: New → Confirmed
Revision history for this message
Josh Brown (joshbrown) wrote :

Thinking about it, this kind of behavior makes sense: The snake should be able to chase it's tale (if it so chooses) without a gap between it's head an tail (since as the head moves forward, so does the tail), and if a snake goes backwards with only one body part it is (logically) chasing it's tail in a very tight loop. So I suppose, logically, this kind of behavior should be allowed.

However the graphical bug #631089 makes chasing your tail look very weird, so unless you have any objections I'll mark this as `Invalid` and we can focus our efforts on the graphical bug.

Revision history for this message
Tom Bell (bushbaby2511) wrote :

Good point. No objections to invalidating. On a similar note (possibly related to bug #631089) the head 'skips' a little after performing the above manouvre. looks like just the one cell but it could be related.

But as I said, as far as invalidating the bug i have no objections. The logic is sound.

Josh Brown (joshbrown)
Changed in snakes-game:
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.