Tap a cell to place your drone

Toy Drone

A toy drone simulation on a 10 x 10 holographic test range, built with vanilla JavaScript for the Stormcraft Studios Toy Drone Assessment.

Built by

Violan Naidoo
violan7naidoo@gmail.com
LinkedIn

README and source

The README is also here as plain text.

Controls

Tap a cell
Place the drone, then choose N, E, S or W
Arrow Up
Move one cell forward
Arrow Left / Right
Turn 90 degrees
Space
Attack two cells ahead
R
Report the position
>_
Type or paste commands, one per line

About example (a) in the brief

The brief prints 0,0,SOUTH. By its own rules the answer is 0,1,SOUTH: MOVE takes the drone to 0,1, the two LEFT turns do not move it, and the ATTACK is ignored because only one cell lies to the south. This build follows the written rules.