Take the 2-minute tour ×
Arqade is a question and answer site for passionate videogamers on all platforms. It's 100% free, no registration required.

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

4 Answers 4

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 can put an if(x) in there and the whole loop is bypassed :)

share|improve this answer

Your Answer

 
discard

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.