Thursday, May 3, 2018

Getting There

It's working, only manually. I have to click for every piece. Getting there...

                 
                                           *     *     *

Finally got the code that produces unlimited scrambles on the puzz pieces.
Below, the two scripts. The randomizer runs 'onload', so that isfine. The second
code - the scrambler - starts with ordered pieces and scrambles them 'onclick'.
That needs to be looked at.

Had a bit of an epiphany about those return statements. Just like the rule on
functions is one function, one action; the rule on inputs and returns is one
input(s) one output. My first script works if I return y, which is then available
to run the second script. 😁





No comments: