Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- reference:
- http://covertaction.wikia.com/wiki/Cryptography_%28Mini-Game%29?file=Decoding_EasyCompleted.png
- Cipher game based on 1990's Covert Action - program steps below
- 1.Get plaintext.
- 2.Cipher the plaintext - simple/crude method below:
- 2a.Create two lists with A-Z letters each.
- 2b.Shuffle one list.
- 2c.Make one dictionary out of them, with letter pairs.
- 3.Print the plaintext using the substituted letters:
- 3a.Take one character, lookup the substituted letter, add the it to the ciphered string.
- 3b.Repeat 3a until the whole string has been encrypted.
- 4.Loop:
- 4a.Ask for a letter substitution.
- 4b.Display the cipher with chosen substitution underneath.
- 4c.Check if the whole message has been deciphered, if yes - exit loop.
- 5.Display congrats message, exit.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement