Ritual of Rectangling - Adventurer Feedback


#1

The python starter code isn’t finished and the comments don’t show. The level is pretty cool though.


#2

I agree: great level, but the python version is incomplete.

It would be also better if requiredPerimeter and requiredArea would be “randomized” (e.g. an attribute of the ogre).

Oh, and the python interpreter doesn’t understand if a < b < c (that is totally valid in python), but it’s easy to avoid (e.g. use if a < b and b < c)

One more thing… also don’t forget that in python 2 / 3 = 0 (integers vs. floats)


#3

Well, I was testing ideas and I tried a fire-trap idea and it worked. I also figured out through testing that if the Ogre’s shadow is touching you that you will die. Lets just say that hammers should not be allowed in this level.


#4

The python code have wrong default syntax. functions instead def, && enstead and, { - exist in code


#5

I’m submitting a patch to fix this.


#6

Thank you, I hope this gets fixed soon.


#7

I played the level in Javascript and didn’t notice any problems with the code.
I think there is a typo in the Elder’s first message: “Show me your strongest warior!”

And I was able to defeat the ogre by using generic fighting tactics. He does high damage, but he doesn’t start attacking until he says he’s bored. Maybe allow for him to start attacking if his health goes below max health during the waiting period.


#8

Hi guys!

Thank you all for the feedbacks. I will read them all and answer you little later.


#9

Thanks! It should be fixed. Could you check it?


#10

There is a random route of moving. So the required values can be in various time.

For Python2, but there is Py3 in CoCo (I think so).


#11

Hm, could you tell me more about it?

Not sure that I got it.

Yeah, I think it’s a good idea.


#12

Thank you very much! Sorry, I saw it and accepted it, but I always forget that I need to “save” a level after accepting. I was sure if I accept it, then it’s enough.


#13

Thanks. Fixed.

It’s a good idea. I change it. Could you check it?


#14

Using the fire-trap method, the use of many fire-traps will send the Ogre flying around the map but with his shadow visible as it moves around the map, if this shadow touches the player, the player will die. I don’t know if this shadow “attack” will always kill you or its because I have low health after I got hit by the Ogre once.


#15

O_O

It’s really really really weird. Could you post you code (or slack)? I will try to find what is happening.


#16

Here is my winning code: (I’m sorry, but I really forgot how to format it on discourse)

loop:
hero.buildXY(“fire-trap”, 16, 13)
if hero.health < 727:
hero.moveXY(3, 8)

If you change the hero.moveXY to (4,8) you will see what I mean.


#17

Thanks. I asked to restrict “hammers” for that level.


#18

Hello everyone,
My code does not seem to be working. I think it is correct, but if it is not, could you let me know? I think there might be a bug with this level.

Code Below:

def almostEqual(valueA, valueB):
if valueA > 0.97 * valueB and valueA < 1.03 * valueB:
return valueA == valueB

def perimeter(side1, side2):

return 2 * (side1 + side2)

def area(side1, side2):

return side1 * side2

requiredPerimeter = 104
requiredArea = 660

base = hero.findNearest(hero.findFriends())

while True:
sideSN = base.distanceTo(“Femae”)
sideWE = base.distanceTo(“Illumina”)
currentPerimeter = perimeter(sideSN, sideWE)
currentArea = area(sideSN, sideWE)
if almostEqual(currentArea, requiredArea) and almostEqual(currentPerimeter, requiredPerimeter):
hero.say(“VENITE!”)
break


#19

Sorry if my code is not well formated, because I am new to this.


#20

So read this first: FAQ