MCPcopy Create free account
hub / github.com/codemistic/Web-Development / snakeIntersection

Function snakeIntersection

Snake Game /snake.js:44–46  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

42}
43
44export function snakeIntersection() {
45 return onSnake(snakeBody[0], { ignoreHead: true })
46}
47
48function equalPositions(pos1, pos2) {
49 return pos1.x === pos2.x && pos1.y === pos2.y

Callers 1

checkDeathFunction · 0.90

Calls 1

onSnakeFunction · 0.85

Tested by

no test coverage detected