Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Algorithm help
- Keith20055
- New to Scratch
5 posts
Algorithm help
Hello Guys
i am trying to write an algorithm for this https://imageshack.com/a/img924/5259/2VjLZj.jpg and i dont know where to start any ideas?
Thank you all
i am trying to write an algorithm for this https://imageshack.com/a/img924/5259/2VjLZj.jpg and i dont know where to start any ideas?
Thank you all
Last edited by Keith20055 (Jan. 27, 2018 21:23:16)
- hellounicorns2
- Scratcher
1000+ posts
Algorithm help
First of all- cool scripting! I think you could find a good text engine so that people can type something and then click (or something like that) for it to remove the vowels. You could also make a consonant remover! There are many possibilities!
inactive :)
- FuturePr0
- Scratcher
100+ posts
Algorithm help
This is nothing to do with scratch, so dont post it here. Hello Guys
i am trying to write an algorithm for this https://imageshack.com/a/img924/5259/2VjLZj.jpg and i dont know where to start any ideas?
Thank you all
BRUH
- Keith20055
- New to Scratch
5 posts
Algorithm help
what are you talking about? of course it has to do with scratch! i am using scratch!…………….
- Keith20055
- New to Scratch
5 posts
Algorithm help
Thank you First of all- cool scripting! I think you could find a good text engine so that people can type something and then click (or something like that) for it to remove the vowels. You could also make a consonant remover! There are many possibilities!
- -ShadowOfTheFuture-
- Scratcher
1000+ posts
Algorithm help
Would this work? (You'd have to first add all the vowels to a list called “vowels”)
define Remove vowels from [string]
delete (all v) of [letters v]
set [i v] to [1]
repeat (length of (string))
if <not <[vowels v] contains (letter (i) of (string)) ?>> then
add (letter (i) of (string)) to [letters v]
end
change [i v] by (1)
end
set [string v] to []
set [i v] to [1]
repeat (length of [letters v])
set [string v] to (join (string) (item (i) of [letters v] :: list))
change [i v] by (1)
end
Last edited by -ShadowOfTheFuture- (Jan. 28, 2018 01:35:25)
<Insert uncreative signature here>
██ ██ ██ ██ ██ ██
██ ██ ██ ██ ██ ██
██ ██ ██ ██ ██ ██ ██
██ ██ ██ ██ ██ ██ ██
███ ███ ██ ████ ██ ███ ███
█████████ █████ █████ █████████
“Though the seasons come and go, and sunshine turns to snow, we will always have tomorrow up ahead.”
- Discussion Forums
- » Help with Scripts
- » Algorithm help