Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 493 Bytes

File metadata and controls

27 lines (19 loc) · 493 Bytes

Node Robolearnr SDK

This SDK can be used to easily leverage the Robolearnr API.

Installation

npm install robolearnr

Start Robolearnr

Check the Robolearnr README.md on how to do this.

Usage

const rl = require('robolearnr');

rl.reset();
while (!rl.on_goal()) {
    while (!rl.before_obstacle()) {
        rl.forward();
    }
    rl.rotate();
}