Ad
  • Custom User Avatar
  • Custom User Avatar

    Please mention in the description that different providers can have the same name.

  • Custom User Avatar

    Nice kata

  • Custom User Avatar

    It seems you're not allowed to lead with a point card. I didn't see this in the description.

  • Custom User Avatar

    Stars are also used for markup, to make text bold or italic. So in the description they get omitted.

    Try using ```*3*``` or \*3\* instead of *3*, to show the stars correctly.

  • Custom User Avatar

    Given initial array

    [
      'KJ', 'JK', 'wr', 'Dk', 'N6', 'oU', 'Uo', 'sX',
      'Kc', 'cK', '5A', 'A5', 'xT', 'Tx', 'RO', 'OR',
      'yV', 'Vy', '8Q', 'qq', 'KM', 'MK', 'kQ', 'Qk',
      'Hy', 'yH', 'BQ', 'QB', 'jP', 'Pj', 'ZN', 'wI',
      'Iw', 'Yo', 'oY', 'EO', 'Yx', 'xY', 'cJ', 'Jc',
      'yr', 'ry', 'fe', 'ef', 'll', 'll', 'Hq', 'U5',
      'g3', '3g', 'BB', 'yN', 'Ny', 'A0', '0A', 'Nv',
      'aR', 'Ra', 'Po', 'oP', 'ab', 'p2', '2p', 'wd',
      'dw', 'Ev', 'vE', 'pm', 'ir', 'ri'
    ]
    

    The first entry of the reference solution is {"wr":["wrriirryyVVyyHHyyNN6","wrriirryyVVyyHHyyNNvvEEOORRaab"]}. This doesn't satisfy the rule that chains in each of resulting array's element's value should respect initial array's elements order. You can't continue the chain after wrri because ri is the last element.

    Also, I would expect the solution to start with {"KJ":["KJJc",...]}. But that's another issue.

    Please fix the solution or describe the problem better.

  • Custom User Avatar

    Good job !

  • Custom User Avatar

    Years like 1700 are not leap years: https://en.wikipedia.org/wiki/Leap_year

  • Custom User Avatar

    Some cases in the random tests are still pretty strange.

    For example, starting from the board:

    k.......
    .B..Q...
    ...p....
    .....P.q
    n.p..P..
    ....RP..
    .....N..
    ...Br..K
    

    The moves are ['h1-g1', 'a8xb7', 'f5-f6', 'f2-e3', 'g1-f1']. The fourth move f2-e3 moves a white knight into a square with a white rook. Three observations:

    • White is moving, but it's black turn
    • The knight is not moving like a knight
    • A piece is capturing its own color

    It's sometimes hard to judge whether things are an issue when you don't have to validate if moves are legal. But I think at the very least the third observation should not be in the test cases. Perhaps also the first. This will also improve the experience for people solving the kata.

  • Custom User Avatar

    Looks good !

  • Custom User Avatar

    Well I have to solve the kata first...

  • Custom User Avatar

    Please make sure that moves in the random tests don't move onto a square with a piece of the same color.

    For example, I had one random test starting from position:

    kn......
    ........
    ..R.P...
    ..P..P..
    ..P.P...
    ..P.....
    .bqB..b.
    Q....nrK
    

    The moves are ['c6-c8', 'b2xc3', 'c4-c5', 'c3xa1', 'e6-e7', 'a8-b7', 'h1xg1', 'g2-h3']. The third move c4-c5 moves a white pawn into a square with another white pawn.

    Side note: I know there is no need to validate if moves are legal, so in this test case it's fine that moves are made while kings are in check. I just think that capturing your own pieces is an issue.

  • Custom User Avatar

    My pleasure. I use an online chess board to play the moves.

  • Custom User Avatar

    Something similar occurs in the fourth test case in Complicated Move Sequences. Here the move g3xd4 is not possible. There is no piece on g3. I think you mean f3xd4.

  • Custom User Avatar

    In the second test case in Complicated Move Sequences, the move b3-d5 is not possible. There is no piece on b3. I think you mean c3-d5.

  • Loading more items...