I'm also planning on solving it the long way, only adding hydrogens as last step, until valence is met. Apparently, in chemistry, adding additional hydrogens when valence is met, is very rare and controversial. Is this a bug or a feature in the kata?
I totally understand your frustration! I've spent days trying to fix bugs myself. It's tough when a formula just won't behave. Turns out I was the one with the bug—guess I need to read the instructions too! I'm glad you figured it out in the end. Great job!
I agree, description edited to mention the non-overlapping constraint. The original description tried to explain that these rectangles have no 3rd dimension property (which is stating the obvious). But it added more confusion than anything else.
That could have worked too, but in my design I wanted the isle to be clear of upgrade packs. I do notice this is not stated in the description. I'll edit the description.
long way: don't do that, you'll run into this "bug" and it's way more work than needed.
controversial: huh?
I'm also planning on solving it the long way, only adding hydrogens as last step, until valence is met. Apparently, in chemistry, adding additional hydrogens when valence is met, is very rare and controversial. Is this a bug or a feature in the kata?
I totally understand your frustration! I've spent days trying to fix bugs myself. It's tough when a formula just won't behave. Turns out I was the one with the bug—guess I need to read the instructions too! I'm glad you figured it out in the end. Great job!
I tried to reduce my code for days, not understanding why my formula was wrong!
I'm unpublishing until I've sorted things out.
This comment is hidden because it contains spoiler information about the solution
Good observation, i hadn't noticed, i made the change
Thanks for solving my hard beta kata's.
This comment is hidden because it contains spoiler information about the solution
Thanks for the feedback. Description edited.
I agree, description edited to mention the non-overlapping constraint. The original description tried to explain that these rectangles have no 3rd dimension property (which is stating the obvious). But it added more confusion than anything else.
That could have worked too, but in my design I wanted the isle to be clear of upgrade packs. I do notice this is not stated in the description. I'll edit the description.
I believe in this case, you should lose 16 health:
I've updated the description accordingly:
8
.4
.So,
AA-
loses 8 health,AAA
loses 16 health andA-A
loses 4 healthLoading more items...