Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/codemistic/Web-Development
/ getSnakeHead
Function
getSnakeHead
Snake Game /snake.js:40–42 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
38
}
39
40
export
function
getSnakeHead() {
41
return
snakeBody[0]
42
}
43
44
export
function
snakeIntersection() {
45
return
onSnake(snakeBody[0], { ignoreHead: true })
Callers
1
checkDeath
Function · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected