Ad
  • Custom User Avatar

    I know that solution is super ugly =)

  • Custom User Avatar
  • Custom User Avatar

    @docgunthrop the missleading thing is

    Your function should return an array of integers. Each integer represents the turn for each shot fired from your ship's cannon.

    and then you saying that we killing white alien (number 7) at turn 1, but example test cases telling me that we killing first allien at turn 0 as you can see below:

    example_solutions = [[0,2,3,4,5,9,10,13,19,22]]

  • Custom User Avatar

    Description of this kata is missleading a little bit :)

    I think I got it.
    Thanks for explaination.

  • Custom User Avatar

    In kata description you sayin smth like this:

    "The green alien (7) at [0,8] at turn 0 ends up at [1,4] (white alien) and gets shot down by your cannon at turn 1. Therefore, the time of registering your first shot is at turn 0"

    So as you point out we are going to shot at turn 0 (killing alien with number -2) and then at turn 1 (killing white alien with number -7).
    But your example solution for the first test case say something completely different, that we shot at turn 0 and then 2, 3....
    example_solutions = [[0,2,3,4,5,9,10,13,19,22]]

    Those test cases are wrong?

  • Custom User Avatar

    I got the same issue :/

    Passed: 38 Failed: 1 Errors: 1