A toy drone simulation on a 10 x 10 holographic test range, built with vanilla JavaScript for
the Stormcraft Studios Toy Drone Assessment.
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.