Please ignore secret bonuses. Secret tests do NOT award bonus. Max hw grade is 30+2 bonus efficiency

Do you need help?

Why a string of subkeys in the example?

matteo_b (950 points)
14 27 33
in HW6 by (950 points)
I can't understand why the keys obtained from the same row of subimages are grouped together when what is needed to decrypt from what I understand is the length of the string containing all the keys obtained from each rotation.
174 views

3 Answers

angelo.spognardi (8190 points)
77 156 226
by (8.2k points)
The example was kept small to be manageable and easy to follow. In your solution, you have to use the key obtained considering all the rotations, from the top left tile to the bottom right one.
AL1990 (28120 points)
3 6 142
by (28.1k points)
An image is a matrix that can be represented as a list of lists, the key follows this structure and is represented as a list of strings, where each string represents a row of tiles and each character a tile. Once you have the list you can concatenate the strings inside to obtain the key, calculate its lenght and decipher the texts.
matteo_b (950 points)
14 27 33
by (950 points)
Thanks, I solved my doubts.
As a suggestion, perhaps I would also opt to better specify what should be returned from the main function.
for example
['LFR', 'NFF', 'FNR'] or 'LFRNFFFNR'
obviously looking at the test_01.py file I understood... but in reality it is not very clear as the construction of the list ['LFR', 'NFF', 'FNR'] does not make much sense if you consider that you could directly construct the string 'LFRNFFFNR' which is what is really needed for decryption.
AL1990 (28120 points)
3 6 142
by (28.1k points)
As described in the jigsaw function definition you must return the key as a list of strings.
andrea.sterbini (208020 points)
756 1270 2377
by (208k points)

Why not?          devil          .