Skip to content

Apple may spawn on top of snake body segments #31

@leosenpaihh

Description

@leosenpaihh

The apple placement logic does not validate the generated apple coordinates against the snake’s body positions.
As a result, the apple can appear directly on top of the snake. The apple should be placed only on empty cells, not overlapping with the snake. This error causes unexpected instant apple consumption, breaks gameflow consistency and may lead to unpredictable behavior in some spawn conditions

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions