How would I solve Level 14 (crispsContest.js)?

How would I solve Level 14 (crispsContest.js)? - Free stock photo of 14, awareness, background

There is not editable space in the code, or I just haven't seen it. o_O

If you aren't supposed to edit the code, how are you supposed to get the keys?

Any Help/Suggestions?

enter image description here



Best Answer

write this on line 47

'greenKey');}return false;if(true){//'



Pictures about "How would I solve Level 14 (crispsContest.js)?"

How would I solve Level 14 (crispsContest.js)? - White and Gold Iphone 6
How would I solve Level 14 (crispsContest.js)? - Elder sister and brother studying at home
How would I solve Level 14 (crispsContest.js)? - Focused students doing homework at home





Escape Game 50 rooms 1 Level 14 Walkthrough




More answers regarding how would I solve Level 14 (crispsContest.js)?

Answer 2

You can edit part of the command on line 47.

To beat the level...

have the command try and remove 'theAlgorithm' theAlgorithm

Answer 3

I overwrote the 'impassable' function:

greenKey')}},'impassable':()=>{if(!""){//

More beatiful; with context:

    'impassable': function(player) {
        if (player.hasItem('greenKey')) {
            player.removeItem(/*my code starts here*/'greenKey')
        }
    },
    'impassable': () => {
        if (!"") { ///*my code ends here*/');
            return false;
        } else {
            return true;
        }
    }

Answer 4

My solution used a ternary operator to decide which item to take, depending on the x position of the player:

'+(player.getX()<25?'blue':'green')+'Key

With context:

player.removeItem(''+(player.getX()<25?'blue':'green')+'Key');

Then, to get the algorithm:

First, go through the blue lock to the yellow key (in the upper left). Then go through then green lock, get the blue key, and exit through the blue lock. Next, go through the red lock to get the blue key (in the upper right), go through the green lock, get the red key and go through the red lock. At this point you should have a blue key and a yellow key, which is all you need to get the algorithm.

Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

Images: Artem Podrez, Artem Podrez, Andrea Piacquadio, Andrea Piacquadio