35
$\begingroup$

public var c: enter image description here = Infinity;

public var w:Array = [enter image description here,enter image description here,
                      enter image description here,enter image description here ];

for(i = 0; i < w.length; i++){
    if(chuck(i)){
        x++;
    }
    else{
        break;
    }
}
trace(x);

function chuck(i):Boolean{  
    return c > w[i];
}



What does $x$ represent?


$\endgroup$
  • 4
    $\begingroup$ This is a very interesting combinatorial puzzle! +1 $\endgroup$ – PerpetualJ Oct 16 '18 at 17:57
  • 3
    $\begingroup$ If every Chuck Norris joke had been this clever, the meme wouldn't have died such a painful death. $\endgroup$ – Tamás Sengel Oct 17 '18 at 14:01
43
$\begingroup$

This looks like

How much wood would a wood Chuck chuck if a wood Chuck could chuck wood?

because

Chuck Norris has a wood grain pattern, thus "wood Chuck," and there's an array of wood, and Chuck vs wood.

also, X should be ...

The amount of wood a wood Chuck would chuck. It is logging for the logging, so to speak. It looks like 4 in this case, but I'm not completely sure since x is never instantiated.

$\endgroup$
  • $\begingroup$ @Chowzen I've updated the last bit to better explain that $\endgroup$ – Matt Oct 17 '18 at 14:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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