Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/codemistic/Web-Development
/ equalPositions
Function
equalPositions
Snake Game /snake.js:48–50 ·
view source on GitHub ↗
(pos1, pos2)
Source
from the content-addressed store, hash-verified
46
}
47
48
function
equalPositions(pos1, pos2) {
49
return
pos1.x === pos2.x && pos1.y === pos2.y
50
}
51
52
function
addSegments() {
53
for
(
let
i = 0; i < newSegments; i++) {
Callers
1
onSnake
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected