Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/Vishal-raj-1/Awesome-JavaScript-Projects
/ getRandomNextdoorBox
Method
getRandomNextdoorBox
assets/js/15puzzle.js:36–39 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
34
}
35
36
getRandomNextdoorBox() {
37
const
nextdoorBoxes = this.getNextdoorBoxes();
38
return
nextdoorBoxes[Math.floor(Math.random() * nextdoorBoxes.length)];
39
}
40
}
41
42
const
swapBoxes = (grid, box1, box2) => {
Callers
1
getRandomGrid
Function · 0.95
Calls
1
getNextdoorBoxes
Method · 0.95
Tested by
no test coverage detected