Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
44
export
function
snakeIntersection() {
45
return
onSnake(snakeBody[0], { ignoreHead: true })
46
}
47
48
function
equalPositions(pos1, pos2) {
49
return
pos1.x === pos2.x && pos1.y === pos2.y
Callers
1
checkDeath
Function · 0.90
Calls
1
onSnake
Function · 0.85
Tested by
no test coverage detected