Ad
  • Custom User Avatar

    Fixed.

  • Custom User Avatar

    fixed

  • Custom User Avatar

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

  • Custom User Avatar
  • Default User Avatar

    done

  • Custom User Avatar

    Fixed.

  • Default User Avatar

    No, this kata much easier because it doesn't care about draw.

  • Default User Avatar

    Fixed, thanks for pointing that out

  • Custom User Avatar

    With the current JS setup, you can't even run multiple tests shuffled. You'd have to use a class instance to do that - there has to be state in the current ( or any ) setup ( unless you pass the complete history every time ). Passing -1 to reinitialise the game works well IMO, it makes for simpler programming than having to wrap the function in a class.

  • Custom User Avatar

    I think I got your point. There is no such problem, because all input is number of matches, output is single answer, no more interaction between tests and solution blocks. var log = []; does not uses in tests, it's a little tip (maybe not the best one) to use fields outside main function

  • Custom User Avatar

    well, my point is that users might keep track of state between these calls, because you are running each such test (multiple times back and forth) sequentially. If you run multiple such tests in order of breadth, you will deny users the advantage of keeping track of external state. I don't know how to explain this better. sorry :/

  • Custom User Avatar

    Yep. Top border is 111 guesses for being cool in perfomance

  • Custom User Avatar

    In your new model, are you calling back and forth between user code and test code in a loop until the user has guessed right / has no more guesses?

  • Custom User Avatar

    Could you explain about run multiple tests shuffled at the same time? In JS we have 50 non-repeatable random tests every time. And each test own const digits (with special secret name for avoiding cheats). Or you talking make it private?

  • Custom User Avatar

    With your updates in JS, you should make sure to also run multiple tests shuffled at the same time, in order to avoid users keeping track of state.

  • Loading more items...