Arqade is a question and answer site for passionate videogamers on all platforms. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
up vote 4 down vote accepted

Make another exit:

map.placeObject(10,10, 'exit');
share|improve this 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.

share|improve this answer

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.

share|improve this answer

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
share|improve this answer

you can put an if(x) in there and the whole loop is bypassed :)

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.