I sat down to work on the cryptogram solving interface from the last post a bit, only to find that the CoronaSDK API reference site was down. So, I decided to spend the allotted time working on a support tool instead. I wrote a simple Python script that:
- reads in a list of statements from a file and, for each of them:
- randomly generates a substitution cipher
- encodes the statement into ciphertext
- prints the original statement and the ciphertext version to a file
Nothing spectacular here, but it will make testing a lot easier, and will eventually grow into a proper content-creation tool. It’s almost usable as such as-is, but I want to add in some heuristics for estimating (and perhaps even adjusting) the difficulty of the resulting cryptogram.