Chore Door Good Luck button

HI!
I’m completing Chore Door Project and I think I’ve done exactly what it asked or maybe I just left or didn’t do something right i just keep reviewing and watching the instruction video, I still don’t understand why the “Good Luck” button in not changing please let me know if im missing something.

let doorImage1 = document.getElementById(‘door1’);

let doorImage2 = document.getElementById(‘door2’);

let doorImage3 = document.getElementById(‘door3’);

let startButton = document.getElementById(‘start’);

let botDoorPath = “https://content.codecademy.com/projects/chore-door/images/robot.svg”;

let beachDoorPath = “https://content.codecademy.com/projects/chore-door/images/beach.svg”;

let spaceDoorPath = “https://content.codecademy.com/projects/chore-door/images/space.svg”;

let closedDoorPath = ‘https://content.codecademy.com/projects/chore-door/images/closed_door.svg’;

let numCloseDoors = 3;

let openDoor1;

let openDoor2;

let openDoor3;

const isBot = (door) => {
if(door.src === botDoorPath){
return true
} else {
return false
}
};

const isClicked = (door) => {
if(door.src === closedDoorPath){
return false;
} else {
return true;
}
};

const playDoor = (door) => {
numClosedDoors–;
if(numClosedDoors === 0){
gameOver(‘win’);
} else if (isBot(door)) {
gameOver(‘lose’)
}
};

const randomChoreDoorGenerator = () => {
let choreDoor = Math.floor(Math.random() * numCloseDoors);
if(choreDoor === 0){
openDoor1 = botDoorPath;
openDoor2 = beachDoorPath;
openDoor3 = spaceDoorPath;
} else if(choreDoor === 1){
openDoor2 = botDoorPath;
openDoor1 = beachDoorPath;
openDoor3 = spaceDoorPath;
} else {
openDoor3 = botDoorPath;
openDoor1 = spaceDoorPath;
openDoor2 = beachDoorPath;
}
}

door1.onclick = () => {
if(!isClicked(doorImage1)) {
doorImage1.src = openDoor1;
playDoor(door1);
}
}

door2.onclick = () => {
if(!isClicked(doorImage2)) {
doorImage2.src = openDoor2;
playDoor(door2);
}
};

door3.onclick = () => {
if(!isClicked(doorImage3)) {
doorImage3.src = openDoor3;
playDoor(door3);
}
};

const gameOver = (status) => {
if(status === ‘win’){
startButton.innerHTML = ‘You win! Play again?’;
} else {
startButton.innerHTML = ‘Game over! Play again?’
}
};

randomChoreDoorGenerator();

still didn’t go through step number 63 though but still it has to change when I open all doors.
here’s the HTML File

Chore Door!
![](upload://ritlnlfNx69MyBkSxWa05lCWRI8.svg)
![](upload://qTjqHqf36LiKSHA4iuwH3aeQK3H.svg)

Instructions

![](upload://qTjqHqf36LiKSHA4iuwH3aeQK3H.svg)
      <tr>
        <td class="instructions-number">3</td>
        <td class="instructions-text">If you manage to avoid the ChoreBot until you open the very last door, you win!</td>
      </tr>
      <tr>
         <td class="instructions-number">4</td>
        <td class="instructions-text">See if you can score a winning streak!</td>
        </tr>
      </table>
<div class="door-row">
  <img id="door1" class="door-frame" src="https://content.codecademy.com/projects/chore-door/images/closed_door.svg">
  <img id="door2" class="door-frame" src="https://content.codecademy.com/projects/chore-door/images/closed_door.svg">
  <img id="door3" class="door-frame" src="https://content.codecademy.com/projects/chore-door/images/closed_door.svg">
  </div>
  <div id="start" class="start-row">
    Good luck!
    </div>
1 Hiding behind one of these doors is the ChoreBot.
2 Your mission is to open all of the doors without running into the ChoreBot.

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.