In this script I would like the underscored line variable to be replaced with the answer if the answer is in the secret word. While this works, if there is multiple letters that are the same in the word the index only reports the first item number where it appears. Is there any way to have it report multiple item numbers?
Sorry I am just now seeing this thank you for trying to help me but I cant export the script pic into my project. Its js empty whenever I look inside of it.
so i tried to implement this script but ion know where to find the "input names: block at. could u pls help me? also does this work with my program? i want it to replace those values of where the letter is in the underscore part to the correctly guessed letter. so instead of this:
Yeah yeah. This is (indirectly) my fault. Back when all these utilities were library procedures written in Snap!, I wrote the official implementation of FOR:
My entire reason for allowing stepping downward was to have a semi-reasonable reason to ringify a function, for teaching purposes.
Anyway, eventually we turned all those utilities into primitives (written in JS) for speed, when Jens got interested in media computation and therefore very concerned to make everything as fast as possible.
But when we decided to add NUMBERS FROM, Jens deliberately took FOR as a model and chose to make the stepping consistent. Thus my initial design choice spread out.
So I'm pushing for either
or two separate blocks, and similarly for NUMBERS FROM.