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 Nirmala
import itertools
def password(cipher_grille, ciphered_password):
g = [True if j == "X" else False for i in cipher_grille for j in i]
p = [j for i in ciphered_password for j in i]
return "".join(itertools.compress(p, g))
def recall_password(cipher_grille, ciphered_password):
result = ""
for i in range(4):
result += password(cipher_grille, ciphered_password)
cipher_grille = list(map(lambda x: "".join(x), zip(*cipher_grille[::-1])))
return result
Jan. 3, 2017