Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/codemistic/Web-Development
/ update
Function
update
Snake Game /game.js:31–35 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
29
window.requestAnimationFrame(main)
30
31
function
update() {
32
updateSnake()
33
updateFood()
34
checkDeath()
35
}
36
37
function
draw() {
38
gameBoard.innerHTML =
''
Callers
1
main
Function · 0.90
Calls
1
checkDeath
Function · 0.85
Tested by
no test coverage detected