Yoshi
(KidKoder)
May 13, 2020, 2:54am
#1
So, today’s daily challenge is from me.
It will be very simple. Today, you will have to make a procedure that asks for one input.
It has to be a string!
The procedure should do:
know which is the first and the last number
then keep the first and last number, but
make all the other letters in between randomly posed again.
See examples:
“example” should be “emaxlpe” or “expalme” or “elmxape” or…
“me” should be “me”
“I” should not be “translated”, so it can show the error from Kodular itself, but if you want, you can set the output to a custom error message.
“2323” should be the same as point 3.
Hope you will have fun koding!
Yoshi
PS: your inputs for me:
"example", “test”, “LOL” and "Me"
PPS:
And yes, I know the creator.kodular site is down but let’s hope it will be ready for us soon!
Creator not working
I don’t really understand
Yoshi:
know which is the first and the last number
then keep the first and last number, but
make all the other letters in between randomly posed again.
1 Like
Yoshi
(KidKoder)
May 13, 2020, 3:35am
#6
WatermelonIce:
“3” means point 3
Yes, silly me. Will edit it.
I finally did it, but mine is extremely complicated cuz I don’t know how to simplify it.
It is really complicated but it worked.
1 Like
Yoshi
(KidKoder)
May 13, 2020, 9:00am
#8
WatermelonIce:
but it worked.
That’s all, but for the Solution, I will mark the one as Solutio that has the fewest. So, for now, yours.
Yoshi:
then keep the first and last number, but
make all the other letters in between randomly posed again.
So according to your instructions one possible solution could also be the word “example”. The procedure will keep the first and last letters the same and all the between will be in random places. In that case the random places happens to create the same word as given. Correct?
1 Like
Yoshi
(KidKoder)
May 13, 2020, 10:20am
#12
What’s with these?
Anyway, I see it’s right. Nice!
Actually this is my first time doing daily challenge, feeling excited!
Mateja
(Mateja)
May 13, 2020, 11:16am
#14
What does your procedure return for “2323” ?
Mateja:
return for “2323” ?
23
Um… the return is quite strange
Yoshi:
The procedure should do:
That’s actually two procedures
Mateja
(Mateja)
May 13, 2020, 11:35am
#18
Of course, I could’ve put it in one, which would make the blocks amount much less, but I wanted so people can understand what I am doing step-by-step.
1 Like
I know that’s why I put . It’s a joke.
system
(system)
Closed
June 12, 2020, 11:37am
#20
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.