drbitboy
Lifetime Supporting Member
Slightly cleaner*, functionally equivalent ST code attached** as btcfb1002.txt.
I'm not saying anything is wrong with the code as is, but I am offering a slightly different approach.
* "Cleaner" is of course a subjective term: the use of the bFound variable causes extra unnecessary evaluations (WHILE/IF and NOT), IMNSHO; then again, the code may be easier for some folks to follow with bFound.
** Along with cvpuzzle.zip of Python-based package that suggests equivalency of the approach: cf. test_cvpuzzle.py; two million pairs of evaluations with random values for [x] produced the same result within each pair.
I'm not saying anything is wrong with the code as is, but I am offering a slightly different approach.
* "Cleaner" is of course a subjective term: the use of the bFound variable causes extra unnecessary evaluations (WHILE/IF and NOT), IMNSHO; then again, the code may be easier for some folks to follow with bFound.
** Along with cvpuzzle.zip of Python-based package that suggests equivalency of the approach: cf. test_cvpuzzle.py; two million pairs of evaluations with random values for [x] produced the same result within each pair.