-
-
Notifications
You must be signed in to change notification settings - Fork 46.7k
Add Polybius cipher #5409
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Polybius cipher #5409
Conversation
"44154344 32154343112215" | ||
""" | ||
message = message.lower() | ||
message = message.replace("j", "i") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why replace? Please add test for this condition
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since there's only 25 spaces in the polybius square and 26 letters, the cipher replaces all j's in the message with i's
A test was added for this condition
Please also fix the build issues |
I'm having a lot of trouble getting the tests' syntax right, that's probably the reason for the build issues. This last commit tries to fix that, let's hope it works! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
* Add polybius cipher * Fix polybius.py build issues and add test
Describe your change:
Checklist:
Fixes: #{$ISSUE_NO}
.Sorry if I shouldn't have deleted my last PR, I had some problems with my forked repository and decided to try it again from scratch (still trying to learn how to use Git). I think all the errors with the tests are fixed now.