MCPcopy 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
42const swapBoxes = (grid, box1, box2) => {

Callers 1

getRandomGridFunction · 0.95

Calls 1

getNextdoorBoxesMethod · 0.95

Tested by

no test coverage detected