Simulates drones.
Try it here
npm i
npm start
Rows
: Number of rows in the grid.Cols
: Number of cols in the grid.Tree Probability
: Number between 0 and 1 representing the probability of each square being a tree.
Row
: Starting row of drone.Cols
: Starting col of drone.Direction
: Starting direction of drone.
Manual
: Executes control code string manually specified. Wind optional.Delivery
: Generates random delivery destination, executes delivery there and back. Wind disabled.
[w, s, e, n]
: Direction of drone at current positiond
: Delivery destinationo
: Original drone positiont
: Treex
: Empty space
Remaining battery percentage in upper right hand corner (each turn costs 0.5 battery units, each forward movement 1 unit)