Ad
  • Custom User Avatar

    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!

  • Custom User Avatar

    I tried to reduce my code for days, not understanding why my formula was wrong!

  • Custom User Avatar
    • You are right. I made a mistake when watching another video on the subject.
    • EDIT: new code limit at 29
  • Custom User Avatar

    I'm unpublishing until I've sorted things out.

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    Good observation, i hadn't noticed, i made the change

  • Custom User Avatar

    Thanks for solving my hard beta kata's.

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    Thanks for the feedback. Description edited.

  • Custom User Avatar

    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.

  • Custom User Avatar

    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.

  • Custom User Avatar
    If the critical attack is executed three times in a row, the health decreases with ...
    

    I believe in this case, you should lose 16 health:

    • the 2nd critical attack is consecutive with the 1st, so you lose 8.
    • the 3rd critical attack is consecutive with the 2nd, so you lose another 8.

    I've updated the description accordingly:

    • If the critical attack is executed twice in a row, the health decreases with 8.
    • If it's executed with one (non critical) action in between, the health decreases with 4.

    So, AA-loses 8 health, AAA loses 16 health and A-A loses 4 health

  • Custom User Avatar

    Thank you for solving this kata!

    To answer the second bullet already:

    Each enemy in the chain gets half the damage done to ...

    This could be interpreted one or two ways. I've added a sample test and a part to the description to avoid confusion:

    => (added to description)

    Note that if you deal more damage to an enemy than their health, that enemy is obviously eliminated, and the measured damage is the maximum damage you would have dealt on a strong enemy, regardless of the actual health of the enemy.

    example: showing 2 turns of attack (level completed)
    
    health = 4
    level = [[2, 8], [4, 8]]
    
    turn 1:
    action = 'A'
    health update after turn: 4
    level update after turn: [[0, 8], [0, 4]]  
    2 enemies beaten, player will automatically move right (1 tile max / turn)
    the next status of the level = [[0, 4]]
    
    turn 2:
    action = '-'
    health update after turn: 4
    the next status of the level = []       -> level completed
    
    
  • Custom User Avatar

    see answer as spoiler

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Loading more items...