Retired

t5 (retired)

Description
Loading description...
Games
Simulation
View
AllIssues2QuestionsSuggestions1Show Resolved
  • Please sign in or sign up to leave a comment.
  • Kacarott Avatar

    The premise of this kata is essentially to model a random event exactly as the reference solution does, which is clearly very flawed. A solution which has a perfectly valid model of the game described can be rejected purely because its solution uses random in a slightly different way to the author, or even because it uses some other source of randomness.

    A simple example of a solution which models the game accurately but is rejected:

    from random import randint
    def play():
        rounds = 1
        # The correct suitcase is labelled 0
        while randint(0, 10-rounds) > 0:
            rounds += 1
        return rounds
    
    • user2442273 Avatar

      I added the restriction that both players must independently and randomly select a suitcase each round. Additionally, we now use our own custom random generator for all random selections, and I've limited the randomization to this model specifically—avoiding other sources like np.random, etc., to ensure consistency.

      Issue marked resolved by user2442273 11 days ago
  • Paul Robertson Avatar

    Tests should import random explicitly, rather than relying on the user's solution to do that

  • TheLittlePixiesFriend Avatar

    I don't think the description should state that you need a recursive function.

    Some of the solutions don't use a recursive function, that's only one way of solving the kata

  • rowcased Avatar

    This comment has been hidden.