forked from: 10 PRINT CHR$(205.5+RND(1)); : GOTO 10.

by Quasimondo forked from 10 PRINT CHR$(205.5+RND(1)); : GOTO 10. (diff: 25)
A Flash version of the classic 10 PRINT CHR$(205.5+RND(1)); : GOTO 10.
inspired by http://www.bogost.com/blog/talk_of_10_print.shtml
and https://forum.processing.org/topic/challenge-processing-variations-of-10-print-chr-205-5-rnd-1-goto-10

The challenge is to get the labyrinth look by using as little code as possible
Of course the biggest problem here is all the boilerplate stuff.
Feel free to create a shorter one.

Author: Mario Klingemann

v3: shaved off even more chars
♥0 | Line 14 | Modified 2012-12-05 04:14:02 | MIT License
play

ActionScript3 source code

/**
 * Copyright Quasimondo ( http://wonderfl.net/user/Quasimondo )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/zwWI
 */

// forked from Quasimondo's 10 PRINT CHR$(205.5+RND(1)); : GOTO 10.
package {
    // A Flash version of the classic 10 PRINT CHR$(205.5+RND(1)); : GOTO 10.
    // inspired by http://www.bogost.com/blog/talk_of_10_print.shtml
    // and https://forum.processing.org/topic/challenge-processing-variations-of-10-print-chr-205-5-rnd-1-goto-10
    //
    // The challenge is to get the labyrinth look by using as little code as possible
    // Of course the biggest problem here is all the boilerplate stuff.
    // Feel free to create a shorter one.
    //
    // Author: Mario Klingemann
    //
    // v3: shaved off even more chars
    import flash.display.*;import flash.text.*;import flash.utils.*
    public class Q extends Sprite {
        var t;
        function Q(){
            var f=new TextFormat
            f.leading=-4
            f.letterSpacing=-1
            addChild(t=new TextField).width=400
            t.wordWrap=t.autoSize="left"
            t.defaultTextFormat=f
            d();
        }
        function d(){t.text+=['╱','╲'][Math.random()*2&1];setTimeout(d,1)}}}

Forked