Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
29
export
function
expandSnake(amount) {
30
newSegments += amount
31
}
32
33
export
function
onSnake(position, { ignoreHead = false } = {}) {
34
return
snakeBody.some((segment, index) => {
Callers
1
update
Function · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected