Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Cipher Map solution in Clear category for Cipher Map by jktujgxtu
def recall_password(cipher_grille, ciphered_password):
answer = ''
for t in range(4): # 4 times rotate
"""get password"""
for a,b in zip(cipher_grille, ciphered_password): # in ((grille line),(password line))
for i, x in zip(a,b): # in ((grille letter),(password letter))
if i == "X":
answer += x
"""rotation"""
v,b,n,m = cipher_grille[::-1]
cipher_grille = list(zip(v,b,n,m))
return answer
if __name__ == '__main__':
#These "asserts" using only for self-checking and not necessary for auto-testing
assert recall_password(
('X...',
'..X.',
'X..X',
'....'),
('itdf',
'gdce',
'aton',
'qrdi')) == 'icantforgetiddqd', 'First example'
assert recall_password(
('....',
'X..X',
'.X..',
'...X'),
('xhwc',
'rsqx',
'xqzz',
'fyzr')) == 'rxqrwsfzxqxzhczy', 'Second example'
Feb. 15, 2019