Welcome to the Doors Maze!
Your goal is to open all doors in the maze and collect the gem.
robot API to move.import readline from "readline-sync";
// Movement
await robot.moveForward();
await robot.turnLeft();
await robot.turnRight();
// Interaction
const result = await robot.openDoor(); // Try to open without anything
await robot.openDoor("password"); // Open with password
await robot.openDoor(item); // Open with an item
await robot.pickup(); // Pick up items (like keys)
const item = robot.inventory[0]; // Access inventory items (0 is the first item)
// Input
const password = readline.question("Enter password: ");
requiredAuth property of the openDoor result.Be sure you're standing in front of the door you want to open.