5 kyu
Spider man and his enemy
Loading description...
Puzzles
View
This comment has been reported as {{ abuseKindText }}.
Show
This comment has been hidden. You can view it now .
This comment can not be viewed.
- |
- Reply
- Edit
- View Solution
- Expand 1 Reply Expand {{ comments?.length }} replies
- Collapse
- Spoiler
- Remove
- Remove comment & replies
- Report
{{ fetchSolutionsError }}
-
-
Your rendered github-flavored markdown will appear here.
-
Label this discussion...
-
No Label
Keep the comment unlabeled if none of the below applies.
-
Issue
Use the issue label when reporting problems with the kata.
Be sure to explain the problem clearly and include the steps to reproduce. -
Suggestion
Use the suggestion label if you have feedback on how this kata can be improved.
-
Question
Use the question label if you have questions and/or need help solving the kata.
Don't forget to mention the language you're using, and mark as having spoiler if you include your solution.
-
No Label
- Cancel
Commenting is not allowed on this discussion
You cannot view this solution
There is no solution to show
Please sign in or sign up to leave a comment.
It is necessary to write a very specific solution to pass all tests in this kata consistently. Tests should be updated to make sure that correct solutions pass all tests (right now, some correct solutions fail 1-5 random tests almost every time).
There should be a special label for kata like this, pretty fun!
There is a security hole, look at my solution :)
Thanks for the feedback. Fixed ;-)
The test cases are really messed up :(
And sometimes things like this appears at the beginning of the random tests (and then follow by all instant catches):
It looks like you've got some
concurrency
issues in JS :PThis is due to the fixing of your last issue. Now I don't have much time to fix it(I'm climbing, climbing... ;-)) So I can only perform a "rollback" operations(fixed this issue, but keep the last one)
Security hole: Your
game.read
method is exposed so the power requirement is basically non-existent; I can just call that method again to reset my power.Made a simple fix: renamed the object name in the random tests.
I am always getting 2-3 tests failure in random section. Maybe I am missing some corner case? Can you point me in right direction or provide any other hint please?
i think there is no corner case. perhaps just because your algorithm is not "quickly" than mine. which algorithm are you using?
This comment has been hidden.
Yes. The algorithm is right ;-)
Thanks ... i'll give it one more go, if still didn't work I will ask for your help again :)
take care of the boundary ;-)
It worked ... thank you. Guess the last effort took the "edge" off :)
Seems uncharacteristically bloodthirsty for your friendly neighborhood Spider-Man.
Time: 665ms Passed: 205 Failed: 3
✔ Test Passed: Value == '\'Floor:38572,Window:6410\''
✘ Your spider man ran out of power before he found the enemy ;-) - Expected: 'true', instead got: 'false'
all power limit are set as my solution used +2, perhaps you can improve your code a bit ;-)
This comment has been hidden.
This comment has been hidden.
No,no. other three guys and I also use the first method. My mean is that your solution is very close to the final solution, only a bit different need to improve ;-)
瞭解了,我會再試著修改原方法,真的調整不出來再換作法,感謝指點。 OK,I got it.I'll try to improve my code. If I still couldn't make it then I'll change my method. Thanks alot.
Are you sure that all your random tests correctly work? It's difficult to check, but perhaps there are some rounding error possibilities? One example:
Always get 2-4 errors:
This comment has been hidden.
Ok, thanks for checking... maybe i look later, always 1-5 errors, always difference of 1, code is simple so perhaps a little bug? By the way - good night;-)!
Zzz.. Bye ;-)
you can console.log getDirection after last moveTo, to see if return"catched"? Zzz....Bye again ;-)
Ok, thanks, i recognized my problem, need one "moveTo" more;-)...
This comment has been hidden.
Spider man is crying... He climbing wall from night to noon ;-)
Yes... now nobody can solve your kata, seems to me he is dead now:-)
You are a prophet? Or spider man has wiped out all the enemies?