There's something wrong with the below code. Press the green play button to run it to see what happens, and then debug it to see what's wrong and what changes are needed to make it work.
Use ||agent.agent move||
and ||agent.agent turn||
to move your Agent to the green glowing bookcases. Use ||agent.agent destroy||
in the direction you want to destroy the green glowing bookcases block. Repeat this until the 3 bookcase blocks are destroyed.
agent.move(FORWARD, 0)
agent.destroy(FORWARD)
agent.turn(RIGHT_TURN)
for (let index = 0; index < 4; index++) {
}
agent.move(UP, 2)
agent.move(FORWARD, 3)
agent.destroy(LEFT)