Ad
  • Custom User Avatar

    Yea, but it has shown error in line 106? Right? I have only about 20 lines at all. That's why I don't understand..

  • Custom User Avatar

    Hi, Guys! I am newbie to JS, so, please, don't judge me harsh, I got such an error (see below), when I was testing my solution for this kata here.
    Can you please, give me, right direction... what is it about? Thank you.

    /home/codewarrior/index.js:106
    });
    ^

    SyntaxError: Unexpected token )
    at createScript (vm.js:80:10)
    at Object.runInThisContext (vm.js:139:10)
    at Module._compile (module.js:616:28)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)
    at Module.require (module.js:596:17)
    at require (internal/module.js:11:18)
    at [eval]:1:1

  • Custom User Avatar

    Yeah, I see now, it was my fault, I take samples for my own testing inside IDE and didn't pay attention for assert properties. Thanks.

  • Custom User Avatar

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

  • Custom User Avatar

    It was my bug, sorry. Everything works ok, except the ambiguity about years range. Thank you.

  • Custom User Avatar

    Hi, in Ruby's description also mention that years are in range 1583 - 4000! As far as I understood it's not true? I have a strange mistake there in last test, but all other tests did perfectly. Could you check it, please?

  • Default User Avatar

    This is wrong solution, but it goes through all tests!

  • Default User Avatar

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

  • Default User Avatar

    You are right! Thank you!

  • Default User Avatar

    +----------+
    |>A B<|
    | / D |
    | D B | => All enemies are defeated: ['A', 'B', 'B', 'D', 'D'] (Notice the repeated enemies)
    | |
    |\ < > /|
    +----------+

  • Default User Avatar

    Are you sure? Because there are many tests with double strike like this:

    +------+
    | C |
    |v A A|
    | |
    |\ <|
    +------+
    ['A', 'C'] should equal ['A', 'A', 'C']

  • Default User Avatar

    m = [
    'AvB',
    '>E<',
    'C^D'
    ]

    test_case(m, ['A', 'B', 'C', 'D', 'E'])
    

    Maybe "E" must be hit 4 times here?

  • Default User Avatar

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

  • Default User Avatar

    All I can say for the next fighters: there is a solution with a performance 00.05 sec for 10M test. And this solution is amazing and simple. So don't give up as I did! )) but for now more then 50% from winners have 1dan or 1kyu and first time here I've found more then 5 solutions with cheater tricks )) you will see it later in solutions folder! )) This is very very funny!

  • Default User Avatar

    This is amazing! )))
    And I like a fool made a whole list of palindromes, when need just had to search among the sums! )) cool!

  • Loading more items...