Ad
  • Custom User Avatar

    I have the exact same question. My code passes all other tests execpt this one.

  • Custom User Avatar

    In your "Details" section you state:

    If neighbors have different cadences:
    a. The soldier's cadence moves one step towards the average (rounded down) of the neighbors.
    b. If the rounded-down average is the soldier's current cadence, they move one step towards the fastest neighbor's cadence.
    In both cases, if the soldier is already marching at the rounded-down average, they'll remain marching at that cadence.

    As currently worded, the last statement in the above description is confusing. If for example, the "initial" array is [4, 4, 5, 6, 6] with "stan" at index 0 and "ollie" at index 4, what should the new value be at index 2? The average of its neighbors is 5. Statement "b" above states that the soldier's current cadence should move one step towards the fastest neighbor's cadence. Based on this statement, the new value at index 2 should be 6. The last statement however states that if the soldier is already marching at the rounded-down average, they'll remain marching at that cadence which would make the new value at index 2 to be 5.

    Other than this description problem, this was another nice kata!! I really enjoy solving all of your katas.

  • Custom User Avatar

    Thanks for the quick fix. That was the only issue that I found. Great Kata!!

  • Custom User Avatar

    Let me begin by stating that this kata is awesome!!! With that said, I believe that I either identified a problem with one of your tests OR I don't completely understand the instructions for the "Glide Effect".

    In your kata's description for the "Glide Effect" you state: "This effect will only be used if there is a next note entry, and if that note entry has a different pitch class as the current note entry.". In one of your tests however (see details below), two consecutive note entries are: 14A2g and 16A4gs. You are expecting the results for the "A" pitch class to be "A . . . . . . . . . . . . . . ● ↘ ● . . ~ . . . . . . . . . . . . .". This expected result shows a downward glide between two consecutive note entries for the same "A" pitch class. Since the pitch classes are identical for these two note entries, my solution doesn't display a downward glide but displays an "x" instead. Note I copied the output from that one failed test below.

    Compact:
    "A;0C.4bsg;4D2;6C.2g;8D4sg;12C.2b;14A2g;16A4gs;20B.2g;22C2g;24E.4sg;28D.b;29D;30C2"

    Expected:
    A' . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
    G . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
    F . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
    E . . . . . . . . . . . . . . . . . . . . . . . ↗ ○ . . ~ v . . . .
    D v . . ↗ ● x . ↗ ● . . ~ v . . . . . . . . . . . . . . ↘ ○ ● . . .
    C ○ . . ~ . . ○ x . . . ↘ ○ x . . . . . . . ↗ ● x . . . . . . ● x .
    B . . . . . . . . . . . . . . . . . . . ↗ ○ x . . . . . . . . . . .
    A . . . . . . . . . . . . . . ● ↘ ● . . ~ . . . . . . . . . . . . .
    | . . . | . . . | . . . | . . . | . . . | . . . | . . . | . . . |

    Actual:
    A' . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
    G . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
    F . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
    E . . . . . . . . . . . . . . . . . . . . . . . ↗ ○ . . ~ v . . . .
    D v . . ↗ ● x . ↗ ● . . ~ v . . . . . . . . . . . . . . ↘ ○ ● . . .
    C ○ . . ~ . . ○ x . . . ↘ ○ x . . . . . . . ↗ ● x . . . . . . ● x .
    B . . . . . . . . . . . . . . . . . . . ↗ ○ x . . . . . . . . . . .
    A . . . . . . . . . . . . . . ● x ● . . ~ . . . . . . . . . . . . .
    | . . . | . . . | . . . | . . . | . . . | . . . | . . . | . . . |

  • Custom User Avatar

    I have several questions regarding this kata:

    1. You state that our task is "to find every integer point that lies on a circle's line". I assume that by "circle line" you mean that we need to find every point on the circumference of the circle where the value of "x" and "y" are both integers. Can you please confirm that my understanding is correct?

    2. In your solution window you provide:

      def draw_circle(x, y, r, ind)
      return []

      You provide us with the value of "x" and "y", a single point on the circumference of the circle. If my interpretation of your instructions (see #1 above) is correct, how can we solve this kata without knowing where the center of the circle is located (i.e., "h" and "k")?

    Thanks in advance for the clarification!

  • Custom User Avatar

    Encript => Encrypt; Decript => Decrypt

  • Custom User Avatar

    I don't know whether it was intentional but the "encript" and "decript" function names are not spelled correctly.

  • Custom User Avatar

    Also note that the test cases work, when run separately by hitting the "TEST" button. When I define "alphabet = []" and hit the "ATTEMPT" button, the encript and chained fixed tests fail and the decript random tests also fail. In all cases however, your kata is reporting that the decript tests are successful.

  • Custom User Avatar

    The issue has been resolved. I enjoyed your Kata.

  • Custom User Avatar

    For the Coffeescript version of this Kata, I am receiving a "ReferenceError: flattenArray is not defined" error for approximately 10% of the Random Tests.

  • Custom User Avatar

    The Coffeescript version is definitely broken. It appears that when the "Random Test Cases" are performed, the preloaded "words" array only contains one word ([ "ZONES "]).

  • Custom User Avatar

    There appears to be a problem with the Coffeescript version of this kata with respect to the Random Tests. I receive the following error message "RangeError: Maximum call stack size exceeded" when the Random Tests are performed. If I copy the first random test arguments and make a new Fixed test using those exact same arguments, the error message is not generated.

  • Custom User Avatar

    The default function name that is loaded into the Solution window is "find_polyhedron_properties". The default tests however are looking for a function named "prism_properties".

  • Custom User Avatar

    Javascript test cases are broken.

  • Custom User Avatar

    In your kata's description you state:

    "Remember, a number from 1 to 12 could be interpretted as a month and a day of the month. So "1 2 2000" could be the first day of January 2000 and the second day of February 2000."

    If I understand your intent however, it should read:

    "Remember, a number from 1 to 12 could be interpretted as a month and a day of the month. So "1 2 2000" could be the first day of February 2000 and the second day of January 2000."

  • Loading more items...