Closed mlhoutel closed 9 months ago
The target variable need to be reworked as such (starting from base target value):
The for
and while
statements now need to increase the count by 2, we need to reset this value at each new loop (base + 2).
We must add a check at the end of those:
play
all branch tests and go to the next iteration if neededpass
all branch tests and go to the next iteration if needed pass
all branch tests and don't go to the next iterationThe flow statements now should have these values:
return
=> 0break
=> target - 2continue
=> target - 1pass
=> target
As noticed in #6, the current state of the while statement for oneliner code is borken.
As for the precedent update to fix the flow statements in the while, for it to be correctly implemented, we must add an explicit declaration of the scoped state for the while.
For instance: