AlexNisnevich / untrusted

A meta-JavaScript adventure game by Alex Nisnevich and Greg Shuflin.
http://alex.nisnevich.com/untrusted/
4.57k stars 708 forks source link

Line limit is annoying #355

Open ghost opened 9 years ago

ghost commented 9 years ago

On /bonus/pushme.jsx, I was trying the following creative solution: projectile:1,interval:100,behavior:function(m){m.move('up');}});({

Basically the code works like this:

map.defineObject('box', {
         projectile: 1, interval: 100, behavior: function(m) {m.move('up');}
});
({
        'type': 'dynamic',
        'symbol': '▣',
        'behavior': null
    });

However, the important piece type: 'dynamic' is missing. This is because if I type it I run out of characters. Is there a reason for the character limit? Because the editor seems to be able to scroll well beyond this limit.

AlexNisnevich commented 9 years ago

We mostly established the character limit just so that people wouldn't go too crazy with solutions -- after all, as you can see, there's a lot that you can squeeze into a single line, especially if there's no character limit.

But the 80-char limit is admittedly pretty arbitrary. We'll have a discussion and see what we want to do about it.

ghost commented 9 years ago

I know! Implement it on a per-level basis. That way, you can have longer limits if the solution needs them, and shorter limits to prevent crazy solutions like mine.

(Incidentally, what's the easiest way to pass /bonus/pushme.jsx?)

stek29 commented 8 years ago

@ghost });function moveToward(a){a.move('left')};({

pppery commented 2 months ago

Dupe of #142