This SDK can be used to easily leverage the Robolearnr API.
npm install robolearnrCheck the Robolearnr README.md on how to do this.
const rl = require('robolearnr');
rl.reset();
while (!rl.on_goal()) {
while (!rl.before_obstacle()) {
rl.forward();
}
rl.rotate();
}