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

Function expandSnake

Snake Game /snake.js:29–31  ·  view source on GitHub ↗
(amount)

Source from the content-addressed store, hash-verified

27}
28
29export function expandSnake(amount) {
30 newSegments += amount
31}
32
33export function onSnake(position, { ignoreHead = false } = {}) {
34 return snakeBody.some((segment, index) => {

Callers 1

updateFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected