How to Solve Level 4
I don't know much about Javascript. Can someone help me with level 4 of Untrusted? I'm not sure how to use the title multiplicity.
Best Answer
Multiplicity, in programming, refers to relationships between objects.
In this case, it's referring to the relationship between the Map and the Exit:
- Usually: 1 map has 1 exit.
- For this level: 1 map can have n (n > 0) exits.
Therefore, simply add another exit (with the map.placeObject() function), and use that instead.
Pictures about "How to Solve Level 4"



What is the answer for brain out Level 4?
Answer: Swipe the washing machine with two fingers into left, then tap on the plug behind it, now tap on the washing machine door to open it, drag all the pants out of it and drag the red one into the square. About Brain Out Game: \u201cWhat is your IQ level?How do you beat Brain Test 3 Level 4?
Answer: Tap on the wooden slingshot and the stone, then merge them and drag it to the lightbulb, move forward to next page, tap on the scissors and drag it to the wire which is on top of the door. The newest Trivia game from Unico Studio is out now!Is there a brain test 4?
Brain Test Level 4 Walkthrough Every level has its own solution, and in each level, you are given hints and clues to solve the level. Almost all of the answers are not expected to be solved the way they are, so you will have to think outside the box. The game also has a feature that can help you solve the text.What is the answer to level 4 on Brain Test 2?
With one hand, tap on the screen to hold the car when you reach the house \u201c7999\u201d.Scary Teacher 3D - Gameplay Walkthrough Part 4 - Outfit Woes
More answers regarding how to Solve Level 4
Answer 2
You could actually still complete this level with the ability to create just one exit. You can do this by creating an exit as mentioned, but then replacing the map variable with one where placeObject does nothing. Then, an error is shown saying which functions are missing, just add these from the actual map:
map.placeObject(map.getWidth() - 5, 5, 'exit');
map = {
placeObject: function(){},
getWidth: function(){},
getHeight: function(){},
_endOfStartLevelReached: map._endOfStartLevelReached
}
Answer 3
What @zero said, this is one level where HasXObjects is not checked. Neither is AtleastXObjects checked.
Go crazy with it. But do try and learn a little Javascript.
Answer 4
you can put an if(x) in there and the whole loop is bypassed :)
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Andrea Piacquadio, Andrea Piacquadio, Katerina Holmes, emre keshavarz
