Ad
  • Default User Avatar

    Compilations tests should be added for cases like calc.One.One.One or calc.One.Plus.Plus.Times

  • Custom User Avatar

    Input is of format x;y instead of y;x, so 0;0 0;0 0;1 1;1 gives

    2|0
    1|1
    

    instead of

    2|0
    1|1
    

    .

  • Custom User Avatar

    Not an issue ;-)

  • Default User Avatar

    FixedTests("0;0 0;0 0;1 1;1",0)
    Test Failed
    Expected and actual are both <System.Char[3]>
    Values differ at index [2]
    Expected: 'e'
    But was: 's'

    Why it should be "east"? If array contains element at position 0;1 that means 0;0 will be not visible from "east".What am i doing wrong or what i don't understand?

  • Custom User Avatar
  • Custom User Avatar

    random test always shows failed...

    Is it possible to display, in addition to the error, the input array to understand what the problem is.

  • Custom User Avatar

    TestCase("0;0 1;1 0;1 1;0 4;0 0;0", 100, ExpectedResult=new char[0])

    Nothing is told about such cases in the description.

  • Custom User Avatar

    There shouldn't be any box blocking line of sight. So let's say the box you'd like to see is on level 1 and it's in the third row, if you look from the north then we cannot have any boxes on rows one and two.
    In the same scenario if special box is on level 2 then you can have boxes in row one and two up to level 1, but if you have another box on level 2 or higher, then you wouldn't see special box.

  • Custom User Avatar

    Could anybody help me to understand the question better?
    Is the question finding a direction to see the target, meaning that there isn't any block that isn't any other box align before on that direction before the box we want to find?

    I am unable to pass the test case with this preset, while I have checked the test case manually that my code works as expected.

  • Custom User Avatar

    Approved as an easy 5 kyu.
    Average rank was messed up by an 8 kyu. :D

  • Custom User Avatar

    Hey! Congratulations on making your first kata.

    I made some minor improvements:

    • Consolidated the tests into fixed and random tests.
    • Consistent tabs/spaces in various places.
    • Consistent placement of curly braces in various places.
    • Fixed a couple of typos on variable names.
    • Added the box on the left to the example at the end of the description.