Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Line limit is annoying #355

Open
ghost opened this issue Aug 31, 2015 · 4 comments
Open

Line limit is annoying #355

ghost opened this issue Aug 31, 2015 · 4 comments

Comments

@ghost
Copy link

ghost commented Aug 31, 2015

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
Copy link
Owner

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
Copy link
Author

ghost commented Sep 2, 2015

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
Copy link

stek29 commented Jun 5, 2016

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

@pppery
Copy link
Contributor

pppery commented Jul 7, 2024

Dupe of #142

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants