Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/codemistic/Web-Development
/ checkDeath
Function
checkDeath
Snake Game /game.js:43–45 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
41
}
42
43
function
checkDeath() {
44
gameOver = outsideGrid(getSnakeHead()) || snakeIntersection()
45
}
Callers
1
update
Function · 0.85
Calls
3
outsideGrid
Function · 0.90
getSnakeHead
Function · 0.90
snakeIntersection
Function · 0.90
Tested by
no test coverage detected