[Adventurer] Loud Quietness


#1

Mountain level Loud Quietness is ready for testing.

It’s a level to practice with the useful string methods toLowerCase and toUpperCase.


#2

I think there is an error with the pet sample code, because my hero gets to the end without problems but the pet gets stuck without even opening the first door.
I did not modify the pet’s code


#3

I completed this level without encountering any problems. Will there be more levels using string methods in the future?


#4

Do you mean “with” or “about”? There are several levels about string methods like series about string search (a letter, substring and startsWith). Now this series lower/upper. Also there will be series with split. If you have more useful ideas about advanced strings, please, share them with us.


#5

I was hoping we can use match/replace (without involving arrays, but I’ll leave that to the developers). I think trim would be useful too.


#6

trim is useful - agree. match - do you mean regexp? In this case I think it will be in later courses.


#7

Interesting. Could you give the sessionID for this case?


#8

and where do I find that?


#9

Open dev console and look for a string with sessionID.


#10

@Bryukh One of the session seeds failed as well on the pet for me.

I think this is the session id: sessionIDs 581f6c0f995707240017ba23

Failure

Part 1

Part 2


#11

Thanks. I’ll try to debug and find a problem.


#12

Fixed! Thanks. It was a bug with the first top guard - she said the wrong phrase for “Loud” doors.


#13

Added LUA patch

[Question]: Should we be running an else if statement here?

if (volume == "Quiet") {

This was inside the function onHear(event) { function.


Shouldn’t the first line be the comment for the “Move the hero and their pet to the exits.” ? <%= task %>
added this to the patch as well for each.


I might recommend shortening the goal names

To just

“Your Hero must reach the end”

and

“Your pet must reach the end”


#14

It’s not critical.

Merged

@Serg What do you think ?


#15

I’d recommend it too :wink:


#16

minor bug found in the DESCRIPTION of the level.


#17

Thanks. Fixed.
20characters.


#18

Did not pay attention
Before this level
But is

pet.on( "hear", function );

supposed to be so slow
its around 2 second delay for this level ( time varies from submit to submit )
and 0.9 average before it start processing

looks like this
message appears — 2 seconds delay — function starts


#19

It’s not message delay. It’s “hearing” delay.


#20

seems like my “engrish” is as good as always

I understand what
It’s not message delay. It’s “hearing” delay.

So this
random delay from 0.8 to who know how many ( ~ 2 sec for this level )
from message appear
to the time when message reaches pet

it is by design of pet – “hearing” realization

and best i can do is sumbit over and over
praying for low delay