3 kyu
Mystery Class
101czim
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.
Can anyone share some insight on SimpleSneakyExceptionMystery?
Lol, guess I found a bug in the tests :) See my solution...
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
Answered here.
This comment has been hidden.
I think the risk of being marked/banned as a 'cheater' for anything to do with this particular kata is low. It turns out to be very challenging to write a mystery puzzle like this and not inadvertently leave in some way to beat it the 'wrong' way.
If you have some more information about what happened, and it is something that can be fixed in the kata itself, it should be fixed, of course!
This comment has been hidden.
This comment has been hidden.
This really should be fixed.
This comment has been hidden.
This was the coolest Kata I solved here yet. Felt like Sherlock Holmes. :) Great work!
This comment has been hidden.
This comment has been hidden.
Woah, thanks for pointing this out! So
die()
is not considered a failure? That's a shame; I was looking for a simple way to do this; do I have to resort to a 'spy'-solution, where I use state to detect 'incorrect' calls and fail them in the test, instead?This comment has been hidden.
This comment has been hidden.
Great! I'll use that approach instead of the spy, that's much cleaner. Updated again.
I've made an update that forces an element of the puzzle that was unintentionally optional and prevents some 'brute force'. This is likely to invalidate current solutions. Sorry ;]
Sometimes (very rarely) two classes with identical names are generated and this happens:
Append an sequence number to de-duplicate generated classes?
Good catch! I'll fix it. I thought I made it impossible for that to happen, but I guess I missed a duplicate value somewhere.
Fixed!
I experienced this issue today. Are you sure it's fixed?
I was, but I was wrong. Somehow it never popped up for me on many runs, even though the bug was still in there. I am sure it's fixed now, though, updated again.
This comment has been hidden.
Yeah, there are lots of misdirections all over the place. It seems that it's intended by the kata itself.
Many more random tests is needed. I got my solution passing all the tests in one run but it sometimes fails.
Fair enough, I can easily increase the amount. Since the tests are fasts, I don't see a downside.
Increased the random amount to at least 100.