7 kyu
Cheat at rock paper scissors!
395Caders
Loading description...
Fundamentals
Probability
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.
python new test framework
This comment has been hidden.
题目在讲什么啊阿巴阿巴
请问您是学生还是老师?
Can someone explain me what do we have to do here? Instructions are extremely unclear.
Ruby Translation Kumited :D
Yup, currently this kata submission isn't working.
Fixed.
@Voile: I don't know what you did, but the kata is currently flawed:
xrange
used in the sample tests but python 2 not available anymorerandom
import in the test casesFixed.
Could you please make your test cases consistent with description?
Actual condition in test doen't ensure this line: you can use percentage to stay close to your definition. Moreover no test for draw and you need to use a bigger error with only 1000 repetitions, or you need to use more repetitions. I let this issue opened until it is solved.
This comment has been hidden.
Done.
This comment has been hidden.
Thanks, I really enjoy probability, and the concept of randomness in programming.
I never thought to approach it by only winning, but that is a good idea!
But, it will no longer work because I've updated the
Test Cases
to make sure you lose every once and awhile. :DIt would be nice to have a basic test suite instead of getting an error when running the tests. This is what I used:
Thank you for the suggestion! I have implemented it the way you've shown.
I will definitely keep this in mind for future kata!