3 kyu
Don't rely on luck HARDCORE
477tianshuo
Loading description...
Mathematics
Refactoring
View
This comment has been reported as {{ abuseKindText }}.
Show
This comment has been hidden. You can view it now .
This comment can not be viewed.
- |
- Reply
- Edit
- View Solution
- Expand 1 Reply Expand {{ comments?.length }} replies
- Collapse
- Spoiler
- Remove
- Remove comment & replies
- Report
{{ fetchSolutionsError }}
-
-
Your rendered github-flavored markdown will appear here.
-
Label this discussion...
-
No Label
Keep the comment unlabeled if none of the below applies.
-
Issue
Use the issue label when reporting problems with the kata.
Be sure to explain the problem clearly and include the steps to reproduce. -
Suggestion
Use the suggestion label if you have feedback on how this kata can be improved.
-
Question
Use the question label if you have questions and/or need help solving the kata.
Don't forget to mention the language you're using, and mark as having spoiler if you include your solution.
-
No Label
- Cancel
Commenting is not allowed on this discussion
You cannot view this solution
There is no solution to show
Please sign in or sign up to leave a comment.
This comment has been hidden.
The sample test has a syntax error
Is this report any different than this other one? https://www.codewars.com/kata/54f6e7a62e2c167e29000112/discuss#66a3eb176427fb4c616e6f5c
Duplicate issue, closing
This kata's tests are broken.
as already reported here,
actual
andexpected
are flipped all over the place in the tests suiteSample tests in JS have some random unmatched closed brackets at the start.
I think tag PUZZLES should be added to this kata and tag REFACTORING should be removed.
The link to the trainer of another kata should be replaced/removed.
This comment has been hidden.
That was easy!!! XDD
This comment has been hidden.
I am only failing one test, but the only thing it says is: "Failed Hardcore Checks". Yet, it seems that all the hardcore checks have passed along with the advanced anitcheat tests. Am I missing something here? I have all other tests passed. Currently it says: "Passed: 93 Failed: 1 Exit Code: 1". There is no other data displayed or hints as to what I'm failing.
This kata was interesting, but seriously you should clearly define what is considered "cheating". Reading the solutions here I still don't know if what I did in my solution was cheating...
Basically, you need to outsmart all the anti-cheat tests.
Passed all tests except 1! I'm confused about the test that states "Check Math Object Prototype". I cannot determine what this test actually does. I'm able to pass the "Check Math Object toString" test, but not the other one. I've tried every combination I can think of, but nothing produces the desired result. Can anyone give a hint as to what that test actually is looking for?
This comment has been hidden.
Thanks! Learned something new there.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
So, yeah, I kicked this kata out of beta! :D
Enjoy a new delicious 3kyu.
This comment has been hidden.
This comment has been hidden.
?
A nice challenge. I was stymied by some recalcitrant toString() methods. Thanks for authoring.
bro uses english premium
I have all the tests passing, but for some reason on the last piece I am getting this message which causes an error: Advanced Anticheat for Check luck for NaN times - Let's do it again I am wondering why I am getting NaN here. Can you help me understand where this number comes from so that I make sure to not destroy it while solving this Kata.
Major Issue: When using test cases, pass in the actual value before the expected value.
e.g.
NOT
Test.assertEquals(expected,actual)
Please fix this as the error messages are currently confusing.
Fixed
This is not fixed. Most of the tests still have this in the wrong order.
Quite a tough Kata. Couldn't destroy the randomness simply by redefining
Math.random()
. Did theMath.random()
function get exported somewhere?e.g.
var myRandNumGenerator = Math.random; // Now I can generate random numbers without invoking Math.random()!
May someone please give me a hint on this?
Yes, this one has anti-cheat measures built inside. So overwriting Math.random isn't as easy as you think.
I get this error when trying to submit:
Sorry, guess must be a number
I didn't know how to do it - I'm not good in such katas. I think there is too much tags - numbers, algorithms, mathematics - it's not the topic of this kata.
If you understand how to do it, then you know why there are many tags.
Caught you cheating, DO NOT TRY TO USE RETURN Please use a way that only works for this kata.
Maybe something is wrong with your code. Try modifying it.
This is proving to be difficult. The response "DO NOT TRY TO USE RETURN" was a little misleading. Maybe it is supposed to be?
This comment has been hidden.
This comment has been hidden.
Did you check the test code before creating this? Synctac error stops from even running the test case
Example test case was broken by anticheat. Have fixed this.
Still appears broken to me.
He has to repost the example tests somewhere because example tests don't update or reset
Shouldn't have a problem.
I really liked it. But is this ok that "Your Test Cases" throw SyntaxError? Perhaps it would be better to add them to the description or comment it out
Fixed
Well, that was fun ! Thanks for this kata :)
This comment has been hidden.
Suggestions are welcome. This should be a difficult one...
This comment has been hidden.
I think it's a nice Kata but it could really benefit from better English. E.g. "freezed" should be changed to "frozen" everywhere.