Play Home Contribute Github Join Us! Discourse Staff Members Github Contribution Guides Team

[Adventurer] Loud Quietness

Mountain level Loud Quietness is ready for testing.

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

3 Likes

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

2 Likes

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

1 Like

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.

2 Likes

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.

2 Likes

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

1 Like

Interesting. Could you give the sessionID for this case?

2 Likes

and where do I find that?

2 Likes

Open dev console and look for a string with sessionID.

2 Likes

@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

2 Likes

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

2 Likes

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

3 Likes

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”

2 Likes

It’s not critical.

Merged

@Serg What do you think ?

2 Likes

I’d recommend it too :wink:

2 Likes

minor bug found in the DESCRIPTION of the level.

2 Likes

Thanks. Fixed.
20characters.

2 Likes

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

2 Likes

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

2 Likes

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

2 Likes