Ad
  • Custom User Avatar

    done

  • Custom User Avatar

    You're right I should clarify that if the current player's whole row is empty, then it should only skip his turn but the move is not skipped. (of course if both players whole row is empty, then end the game)

    Also, if the current player's move points to an empty hole, but its whole row is not empty, then it will skip that move but not the players turn.

    I'll update the description and reference solution, thank you

  • Custom User Avatar

    Following that rule, all remaining moves would be skipped if the player's row was empty, because there are no valid moves.

  • Custom User Avatar

    Maybe so, or maybe the description is not very clear about this part. From the example, I read this rule that a move should be ignored in such case, but the player stays the same.

    The 4th hole in player 2's row is empty, so what you will do is skip that move, but it's still player 2's turn, until it gets to a valid move.

  • Custom User Avatar

    In sungka, when you're out of marbles in your row, you will keep on skipping turns until a marble reaches in one of your holes in your row.

    The reference solution in Python does not follow this rule, which can lead to unexpected failures in the random tests for solutions that do follow the rule.

    Here's one such input:

    moves:
      [4, 5, 7, 3, 2, 1, 7, 6, 2, 3, 3, 1, 6, 1, 3, 7, 3, 4, 7, 6, 6, 5, 7, 7, 5, 4, 7, 3, 7, 7, 1, 2, 6, 7, 2, 6, 6, 6, 4, 4, 4, 2, 7, 1, 2, 2, 4, 3, 6, 2, 2, 3, 2, 1, 1, 4, 5, 6, 4, 1, 1, 5, 4, 4, 7, 1, 5, 3, 5, 2, 2, 1, 4, 2, 2, 4, 6, 5, 1, 5, 1, 6, 6, 2, 3, 7, 3, 7, 3, 4, 7, 4, 2, 2, 4, 1]
    reference solution:
      [[0, 0, 0, 0, 0, 0, 0, 60], [0, 0, 2, 2, 1, 1, 3, 29], 1]
    actual solution:
      [[0, 0, 0, 0, 0, 0, 0, 63], [0, 0, 0, 0, 1, 2, 0, 32], 1]
    
  • Custom User Avatar

    done

  • Custom User Avatar

    could you add the tag though ..

  • Custom User Avatar

    I'll take note of this and would change the title if I ever start making a follow up. I could also do something like Sungka I, Sungka II

  • Custom User Avatar

    thank you

  • Custom User Avatar

    thank you

  • Custom User Avatar

    Done

  • Custom User Avatar

    done

  • Custom User Avatar

    I suggest to add these edge cases tests in sample/fixed tests:

    • move = [5, 5, 1, 3, 1, 4, 2, 7, 7, 2, 3, 4, 3, 2, 7, 2, 1, 5, 2, 2, 3, 2, 3, 6, 4, 3, 5, 5, 4, 3, 6, 4, 4, 4, 3, 2, 2, 2, 4, 5, 6, 3, 1, 5, 2, 6, 6, 5, 2, 7, 5, 7, 4, 5, 4, 1, 2, 5, 5, 4, 5, 3, 5, 2, 6, 4, 2, 4, 3, 4]
    • move = [5, 1, 6, 1, 7, 1, 2, 4, 4, 5, 3, 6, 6, 4, 5, 6, 7, 2, 3, 4, 5, 7, 1, 2, 7, 5, 3, 3, 7, 1, 1, 4, 6, 3, 2, 2, 6, 7, 1, 1, 2, 7, 7, 6, 5, 2, 5, 6]
    • move = [7, 3, 3, 2, 4, 1, 1, 4, 3, 7, 5, 1, 2, 5, 4, 7, 1, 6, 2, 7, 2, 3, 7]
  • Custom User Avatar

    Should add simulation tag. If you're still considering developing a follow-up kata that involves actually playing Sungka against a bot, it would be advisable to modify the current kata's title to something more descriptive like "Sungka Simulation" to better reflect the potential future implementation and scope of the challenge.

  • Custom User Avatar

    Requires an update of Python framework.

  • Loading more items...