Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/codemistic/Web-Development
/ draw
Function
draw
Snake Game /game.js:37–41 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
35
}
36
37
function
draw() {
38
gameBoard.innerHTML =
''
39
drawSnake(gameBoard)
40
drawFood(gameBoard)
41
}
42
43
function
checkDeath() {
44
gameOver = outsideGrid(getSnakeHead()) || snakeIntersection()
Callers
1
main
Function · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected