MCPcopy 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
43function checkDeath() {
44 gameOver = outsideGrid(getSnakeHead()) || snakeIntersection()
45}

Callers 1

updateFunction · 0.85

Calls 3

outsideGridFunction · 0.90
getSnakeHeadFunction · 0.90
snakeIntersectionFunction · 0.90

Tested by

no test coverage detected