38
$\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$
2
  • 4
    $\begingroup$ This is a very interesting combinatorial puzzle! +1 $\endgroup$ Oct 16, 2018 at 17:57
  • 6
    $\begingroup$ If every Chuck Norris joke had been this clever, the meme wouldn't have died such a painful death. $\endgroup$ Oct 17, 2018 at 14:01

1 Answer 1

46
$\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$
0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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