iiitl / snake-game-js

0 stars 44 forks source link

Added Feature: Game over on self collision #59

Closed Sidharth-Singh10 closed 4 months ago

Sidharth-Singh10 commented 4 months ago

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 commented 4 months ago

@Sidharth-Singh10, nice work!