Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
great kata. harder (more time-consuming) than a 5 kyu, though. deserves a 4 imo.
This comment is hidden because it contains spoiler information about the solution
Got it
Okay I changed it to rounded to 2 decimal places :)
Should hopefully be more clear now
@Voile Ah, good point on the Number.safeInteger. I missed that. I wanted to include some large prime test cases though so people couldn't just throw together a couple loops and call it good. But perhaps I can't do that.
With regards to your first point, I don't entirely understand what you mean by "Either returning the probability as an integer or...", is that not what I am asking to be done right now? I thought it would be simplest for people just to throw their answer into a Math.round() rather than have to deal with decimals that may differ slightly based on rigor of the solution method.
ah yes, got it. thank you
This comment is hidden because it contains spoiler information about the solution
@adrian.eyre, Thank you! I was thinking all I had to do was return correctValue, but I was unsure...
Confused by what the .prototype.play function/value does. If I run Game(board) I can get the correct value, but I cannot figure out how to write it so the test cases work. I know it's related to prototyping and classes, but I am just not particularly familiar with either in JS.