Just a little question on one of the newest features of HS, string!
Do you guys have any ideas on how to change digits in a string? For example, I set Hello to 124, but I want Hello to be 123, then how can I do that?
If it’s only numbers, just subtract one.
Well if you want to take 123 and turn 2 into 4, then you can’t do it. Sorry for the bad example.
If the string is all numbers, just do normal math operations. 123 + 20 = 143
If you are looking for a replace at index, see Petrichor’s profile.
Ok I will ask Petrichor. I’m making a Sudoku and I’m making a thing where if answer matches players answer, than the answer is correct.
Are you looking for replace at index? The project he made is pretty simple (in Hopscotch, just look at the code – it’s pretty easy to understand)
Can you send me link?
Wait I think I know lol
Yeah that one ok thanks