MCPcopy Create free account
hub / github.com/marijnh/Eloquent-JavaScript / 07_1_measuring_a_robot.js

File 07_1_measuring_a_robot.js

code/solutions/07_1_measuring_a_robot.js:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1function countSteps(state, robot, memory) {
2 for (let steps = 0;; steps++) {
3 if (state.parcels.length == 0) return steps;
4 let action = robot(state, memory);

Callers

nothing calls this directly

Calls 1

compareRobotsFunction · 0.85

Tested by

no test coverage detected