MCPcopy 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
40export function getSnakeHead() {
41 return snakeBody[0]
42}
43
44export function snakeIntersection() {
45 return onSnake(snakeBody[0], { ignoreHead: true })

Callers 1

checkDeathFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected