MCPcopy 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

29window.requestAnimationFrame(main)
30
31function update() {
32 updateSnake()
33 updateFood()
34 checkDeath()
35}
36
37function draw() {
38 gameBoard.innerHTML = ''

Callers 1

mainFunction · 0.90

Calls 1

checkDeathFunction · 0.85

Tested by

no test coverage detected