Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Feature: Game over on self collision #59

Closed
wants to merge 1 commit into from

Conversation

Sidharth-Singh10
Copy link

Fixes #4
Added a loop in isCollide function which checks if the snake has collided with itself, which in turn returns true if it has collided, thereby alerting game over
Uploading Screenshot from 2024-03-17 00-05-51.png…

@ANKITy102
Copy link
Contributor

@Sidharth-Singh10, nice work!

@ANKITy102 ANKITy102 closed this Mar 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement Game Over on Snake Biting Itself
2 participants