Ad
  • Default User Avatar

    JS :

    • this is very unlikely to get approved, however; there is no check for actually calculating anything by MC method

    • a check for using the MC method would be much harder to write than this kata, which is a problem with a lot of white kata with interesting ideas, the test suites are harder than the solutions for the authors to write

  • Custom User Avatar

    Nice kata, I find the monte carlo method really interesting.

    However, you should check that ...

    1º People doesn't just return Math.PI, or a single value within the range 3 - 3.2
    2º The returned values are random.

  • Default User Avatar

    What does "n" represent? And don't we need two numbers as input: The total number of throws and the number of throws that landed inside the circle?