Ad
  • Custom User Avatar

    Hello, looks like a misprint in kata description:
    ["TEAM C", "6", "5"]
    instead of
    ["TEAM C", "6", "4"], or
    TEAM C won two matches (1x0 and 3x2). Receives 6 points and a total of 4 scored goals.
    instead of
    TEAM C won two matches (1x0 and 3x2). Receives 6 points and a total of 5 scored goals.

  • Custom User Avatar

    it would be definitely best and short solution with these last 3 lines:

    return good > evil ? 'Battle Result: Good triumphs over Evil' :
    evil > good ? 'Battle Result: Evil eradicates all trace of Good' :
    'Battle Result: No victor on this battle field';

    btw great job!

  • Custom User Avatar

    Yes, some tests do not follow these rules. To pass the kata I had to change my solution, because tests form triangles with 0-sides and negative sides (what?)

    Javascript language.

  • Custom User Avatar

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

  • Custom User Avatar

    Well, I got this one:
    STDERR
    Traceback (most recent call last):
    File "tests.py", line 16, in
    test.assert_equals(helper.page_index(0), 0, 'page_index returned incorrect value')
    TypeError: 'int' object is not callable

    In my IDE all works fine.