7 kyu
WASD Movement
188ScoobyDooby
Loading description...
Games
Fundamentals
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.
Sample tests shouldn't be randomized.
This comment has been hidden.
This comment has been hidden.
OK added vector tag.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
Edited to shuffle the collection of test cases before testing them. Wouldn't want anyone cheating :)
@Blind4Basics How would test methods being public be a problem?
that was a question! ;)
@Blind4Basics Good question! :) Yes in fact the test class seems to be in the same package as the solution class, so the public method and class were accessible from the solution class. I have now made them non-public to prevent this. I wonder how many more devious ways there are to cheat this thing? :)
ok, resolving.
ok, approved.
I modified the sample tests so that they do not contain all the combinations and modified the nested class in the test cases so that it will be private and its properties protected.