A lot of times, when you add a block to an active stack of blocks, the change immediately takes effect. In this case, that didn't seem to happen here, when Jie showed it to me. The block also didn't have the active yellow highlight, but it was still "active" kind of - the "wait until" block makes it a little confusing whether the stack is active while it's waiting until, or only when what it's waiting until happens...?
Jie reported during the Catch Game internal playtest (6/2/17):
If I don't have a Stop All block and run the script, and then add the Stop All while the script is running, code will not stop even after you reach greater than the win score. May have something to do with not resetting properly (since I noticed the "win" sprite is visible even before actually winning)
Script running without stop block
Script still running after Stop All block added and winning score reached
_Mac OS, Chrome_
I'm wondering if this may have had to do with some of the other problems that were occurring at the same time. I wasn't able to reproduce. I tried two different projects:


@jwzimmer do you think you could try to find a way to reproduce the original error?
I repro'd bugs by following the steps in the Catch Game card (since I figured that was how Jie encountered this during the playtest). It's not exactly the bug she described, but it seems related... I did repro this part of her original description "(since I noticed the "win" sprite is visible even before actually winning)".
I see three issues while using the stack in the "You Win!" card (there are errors in the console as well):
The apple & score going crazy

More detailed description of issues 1 & 2
Errors in the console

All the contents of my project during issues 1 & 2



The state of my project during issue 3, the mysterious one



Alright so the part of the issue having to do with clicking the green flag again and it not working, here is what is going on:
It seems like a "race condition" of sorts in the way the catch game code was designed. The stack that waits for the variable to be > 10 does not initialize the variable to zero, another stack does that. This means, depending on the execution order, the "you win" stack can fall through directly to stop-all.
In scratch 2 there is an issue with the catch game code also, requiring you to click the green flag twice to get it to run again.
Since we make no guarantees about execution order, the "you win" stack in the catch game cards should look like the right instead of the left:

cc @cwillisf about execution order and @thisandagain about the cards being wrong!
O_O Good catch. @carljbowman can you make this change in the cards?
I SEE WHAT YOU DID THERE
We are removing this card from the set for the playtest as it requires the Paint Editor.
While it's not ideal, double clicking the Green Flag does cause a reset in 2.0, which highlights a difference in order of execution between 2.0 and 3.0. Do we have a sense as to why this might be the case?
I'm going to close this now that @jwzimmer has separated the other part of the issue and we this issue cannot be closed by any code changes in GUI.