This is an example of a full run of a program where the user solves the puzzle. Your output does not need to be indentical to mine, but at each round of play your program should print out the fully encoded puzzle and the answer-so-far with the user's guessed letters filled in.
Note that in this example the user makes an incorrect decoding guess that she later re-guesses with the correct letter. Your solution needs to support the user choosing different decodings for the same encoded letter as the program runs.
% python cryptoquote.py |*|*|*|*|*|*|*|*|*|*|*|*|*|*|*|*|*|*|*|*|*|*|*|*|*| Welcome to Cryptoqote I'll print out a quote I've encrypted using a single letter substitution cipher. See if you can decrypt it, one letter at a time. Enter 'quit' to exit the game before solving. Good Luck! |*|*|*|*|*|*|*|*|*|*|*|*|*|*|*|*|*|*|*|*|*|*|*|*|*| ........................................ PUZZLE: v jpug rpzsxnga brvghrg! ---------------- YOUR SOLUTION: v jpug rpzsxnga brvghrg! ........................................ From which letter in puzzle string? v To which letter in solution string? a <---- NOTE: this is a wrong guess, that I'll re-guess correctly later ........................................ PUZZLE: v jpug rpzsxnga brvghrg! ---------------- YOUR SOLUTION: A jpug rpzsxnga brAghrg! ........................................ From which letter in puzzle string? p To which letter in solution string? o ........................................ PUZZLE: v jpug rpzsxnga brvghrg! ---------------- YOUR SOLUTION: A jOug rOzsxnga brAghrg! ........................................ From which letter in puzzle string? g To which letter in solution string? e ........................................ PUZZLE: v jpug rpzsxnga brvghrg! ---------------- YOUR SOLUTION: A jOuE rOzsxnEa brAEhrE! ........................................ From which letter in puzzle string? v To which letter in solution string? i <---- NOTE: another guess for v's decoding ........................................ PUZZLE: v jpug rpzsxnga brvghrg! ---------------- YOUR SOLUTION: I jOuE rOzsxnEa brIEhrE! ........................................ From which letter in puzzle string? j To which letter in solution string? l ........................................ PUZZLE: v jpug rpzsxnga brvghrg! ---------------- YOUR SOLUTION: I LOuE rOzsxnEa brIEhrE! ........................................ From which letter in puzzle string? u To which letter in solution string? v ........................................ PUZZLE: v jpug rpzsxnga brvghrg! ---------------- YOUR SOLUTION: I LOVE rOzsxnEa brIEhrE! ........................................ From which letter in puzzle string? r To which letter in solution string? c ........................................ PUZZLE: v jpug rpzsxnga brvghrg! ---------------- YOUR SOLUTION: I LOVE COzsxnEa bCIEhCE! ........................................ From which letter in puzzle string? z To which letter in solution string? m ........................................ PUZZLE: v jpug rpzsxnga brvghrg! ---------------- YOUR SOLUTION: I LOVE COMsxnEa bCIEhCE! ........................................ From which letter in puzzle string? s To which letter in solution string? p ........................................ PUZZLE: v jpug rpzsxnga brvghrg! ---------------- YOUR SOLUTION: I LOVE COMPxnEa bCIEhCE! ........................................ From which letter in puzzle string? x To which letter in solution string? u ........................................ PUZZLE: v jpug rpzsxnga brvghrg! ---------------- YOUR SOLUTION: I LOVE COMPUnEa bCIEhCE! ........................................ From which letter in puzzle string? n To which letter in solution string? t ........................................ PUZZLE: v jpug rpzsxnga brvghrg! ---------------- YOUR SOLUTION: I LOVE COMPUTEa bCIEhCE! ........................................ From which letter in puzzle string? a To which letter in solution string? r ........................................ PUZZLE: v jpug rpzsxnga brvghrg! ---------------- YOUR SOLUTION: I LOVE COMPUTER bCIEhCE! ........................................ From which letter in puzzle string? b To which letter in solution string? s ........................................ PUZZLE: v jpug rpzsxnga brvghrg! ---------------- YOUR SOLUTION: I LOVE COMPUTER SCIEhCE! ........................................ From which letter in puzzle string? h To which letter in solution string? n ------------------------------------- You Solved it!!! i love computer science!Return to Lab 07