Ad
  • Custom User Avatar

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

  • Default User Avatar

    I Had the same issue, how did you fix it?

  • Custom User Avatar

    It actually is relevant, because there are different rules when you play with more than one deck. Many solutions probably won't be affected, but I am sure there are certain solutions that rely on the fact that there are no duplicate cards to simplify certain steps.

  • Custom User Avatar

    Had a trouble too. Turns out I haven't assumed at the beginning that the default dierction is to the right.

  • Default User Avatar

    That means this is the only test your code doesn't handle properly. With already more than one thausend completions, it would be known if there was an error in this test. I just checked that the java version of this test use the right input code and it's exactly the same than in python (355 completions), so the test is good as well as the expected value. Please review your code.

  • Default User Avatar

    Damn me! Actually all is good on my side! x-D

    Boats are placed either horizontally, vertically or diagonally on the board.

    you forgot (and I did too for the last minutes) that ships could be in diagonal, so the two 1 are actually the same boat (boat number 1, of size 2)

  • Default User Avatar

    Advise? No advise: my random generator is wrong! Good catch, working on it (I don't have much chance with this kata, today... x/ )

  • Default User Avatar

    It is just test data so not really relevant, but for you I changed it anyway :)

  • Default User Avatar

    Hi Eranha, in the details is clearly stated that there is no rank for the suit (read the last line).

    Your second example should be read (without suit) as 'A6542' vs 'A6542', that is a tie.

  • Custom User Avatar

    If no digit works, well, that's bad news for the professor - it means that he's got some of his runes wrong. output -1 in that case.