Skip to content

Corrected loops to keep the bottom row (W-Z) letters. Made operations functions return instead of print. - #1

Open
JohnHammond wants to merge 2 commits into
nboubakr:masterfrom
JohnHammond:master
Open

JohnHammond wants to merge 2 commits into
nboubakr:masterfrom
JohnHammond:master

Conversation

@JohnHammond

Copy link
Copy Markdown

This implementation of the Polybius square works great because it keeps the J letter. The current code did not seem to properly handle the bottom row, so I corrected that with a for loop to 5 instead of 5.

Additionally I made the encipher and decipher function return the full data rather than print it, so it
can be used in a more modular manner. Hope this helps!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant