import { Lawn } from './Lawn';
Lawn.schedule(your_script).run();
const lawn = Lawn.schedule(your_script);
lawn.on('change',(evt)=>{
console.log(evt.mower);
// you can get curent position
console.log(evt.mower.getPosition());
console.log(evt.data);
});
lawn.on('warn',(evt)=>{
console.log(evt.warning);
console.log(evt.mower);
});
lawn.run();
# if you use yarn
yarn
# otherwise
npm install
# test code
yarn test
# coverage
yarn coverage