Ad
  • Default User Avatar

    Yeah, I went ahead and refactored the missing logic to complete this kata, thanks!

  • Default User Avatar

    I certainly need help with this Kata. There are several tests that are not working properly, such as one where it should be a tie but instead the test is expecting Evil to win. My code works with the examples on the kata description but when it comes to the attempts, the thing simply fail: Is there a way to fix the tests, please?

    1 1 1 1 1 1
    1 1 1 1 1 1
    Test Failed
    Expected string length 48 but was 45. Strings differ at index 15.
    Expected: "Battle Result: Evil eradicates all trace of Good"
    But was: "Battle Result: No victor on this battle field"
    --------------------------^

    Log
    0 0 0 0 0 10
    1 1 1 1 1 1
    0 1 0 0 0 0
    Test Failed
    Expected string length 38 but was 45. Strings differ at index 15.
    Expected: "Battle Result: Good triumphs over Evil"
    But was: "Battle Result: No victor on this battle field"
    --------------------------^
    Completed in 1.6080ms
    ShouldBeATie
    Log
    1 0 0 0 0 0
    0 0 0 0 0 0
    1 1 1 1 1 1
    1 0 0 0 0 0
    0 1 0 0 0 0
    0 1 0 0 0 0
    0 1 0 0 0 0
    0 0 1 0 0 0
    0 0 0 1 0 0
    1 0 0 0 1 0
    Test Failed
    Expected string length 45 but was 38. Strings differ at index 15.
    Expected: "Battle Result: No victor on this battle field"
    But was: "Battle Result: Good triumphs over Evil"

  • Default User Avatar

    Thanks, I am going to check it out!

  • Default User Avatar

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

  • Default User Avatar

    I have the exact same issue

  • Default User Avatar

    Hye colleagues:

    This thing must have something wrong in the test asserts, I have tried my code on my Visual Studio Code, then in my IDLE as well and it went just fine. Then I tested it here and it gives me errors each time I try to test it out, any inputs, comment, somebody help!