Beta
The "Small" Password Game
16pablo.fs
Loading description...
Puzzles
Regular Expressions
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.
Related to the issue below, and a more serious one: the kata is impossible to pass at certain dates due to the same reason causing fixed tests that expect total digit sum to be at least 25 to fail. If
YYYYMMDD
's digit sum is less than 10 (such as2030-01-12
) this will happen.Thanks for the help. The test are now changed so they will pass the lowest date possible, being 2100-10-01, which adds up to 5.
Okay, an actual issue this time: containing today's date in
YYYYMMDD
and digit sum being at least 25 is the same condition for certain dates. For example, the date20240929
adds up to28
, which means if it doesn't exist in the password then the password is invalid, and if it exists then you don't need to check digit sum anymore. So during certain dates the kata will become easier, which is not very future-proof.It's very easy to test this with
instead of
I see your issue here, we made this kata as a little validation for some of the rules of the original game plus some more created by us. We wanted to make no changes to the original rules if it was possible, and we thought of that possibility, but didn't see it as a strong issue. Do you think is a big problem and we should change it?
Issue resolved (so it can be published)
It is not mentioned whether the "today date" checking is case-insensitive (and the tests do not check for this either).
As it's mentioned in the description the today date has the format YYYYMMDD, which all are numbers. I don't understand your issue. Can you explain yourself?
Oh okay, I thought the date contains letters.