Power Of Thor - Episode 1 - Puzzle discussion

#1

Power Of Thor - Problem - C#
The power of thor #BUG #PHP
Thor's bug
#2

The game has a bug. You cant get 100% score due to the second level`s name doesnt match with the real one.

UP != DOWN

#3

It works on my side, are you sure you didnâ€™t swap coordinates? I mean, origin is on the NW corner so going up towards north equals a decreasing y coordinate, not increasing.

#4

This looks like it is fixed now. I get 100%

#5

with the following code i can run all test at once:

Edit:No full code allowed

but for some reason i only get 75%

#6

When reading your code, the mistakes are actually quite obvious. You never go only S, but go SW when goal is towards NW and even go SW when goal is towards NEâ€¦ Moreover, youâ€™re rarely updating Thor position. Iâ€™m surprised you got 75% with that and even more that it passed all tests in IDE.

#7

Hi,

You donâ€™t even need all that test. You can make a diagonal move by compositing 1 vertical move, and 1 horizontal. For example the string â€śNEâ€ť is equal to â€śNâ€ť+â€śEâ€ť, so you can append east move to north move with just 2 tests. You donâ€™t even need to test diagonals.

#9

Hey hereâ€™s how I solved it with a Switch statement
MODERATOR EDIT: no full code please

#11

updated after some tome. nevermind.

#12

elementary geometry, but i got it hard (100% done)

#13

I have passed all the test cases but then when I submit I only get 75%

I think there is a bug

#14

My strange scala solution
MODERATOR EDIT: no full code please

#16

Me too, C#

#17

MODERATOR EDIT: no full code please

I was inclined to try the solution provided by jeangodecoster. Itâ€™s clever. I re-did it with Python 3.

Anyway, Iâ€™ve tried using this on all tests. The code is unable to complete tests #3 and #4. As noted through trial, when Thorâ€™s position and the Lightâ€™s position both share the same Y coordinate (on test #3), by this code he should continue to move West until he hits his mark. Mind you, that Y coordinate is mutually 17, and, thus, within the bounds of LY and TY.

Anyone have any ideas as to what might be happening here?

Best regards.

#18

'Ahaâ€¦ Nevermind. Figured it out.
My stupid self was assuming that input for LX, LY, TX, TY would automatically update Thorâ€™s coordinates. I assumed incorrectly.

MODERATOR EDIT: no full code please

#19

Hi All,

I get a bug when running in C# the coordinate read from the input doesnâ€™t change in the the 3rd test.
Did one get this? or can you tell me where can i report bugs ?

Thank you all,
Regards

#20

Iâ€™ve got 100% with this python code:
** MODERATOR EDIT: no full code please **

#21

Hi Guys! My code succeeded the step 1&2 but not the 3rd, it seems my code doesnâ€™t acquire the new position of Thor, isnâ€™t ?

#22

You need to update yourself the new position of Thor, indeed.

Also please donâ€™t put full code here so that other users can guess by themselves

#23

Iâ€™m sorry, I wouldnâ€™t have to post my entire code
Thank you for answering, I was thinking that the position was automatically corrected;â€¦