Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Uncategorized category for Cipher Map by carsevilla
def rotate(matrix):
return list(zip(*matrix[::-1]))
def getword(grille,password):
word = ''
for i,j in [[i,j] for i in range(4) for j in range(4) if grille[i][j] == "X"]:
word += password[i][j]
return word
def recall_password(cipher_grille, ciphered_password):
grille = [tuple(l) for l in cipher_grille]
password = [tuple(l) for l in ciphered_password]
result = ''
for it in range(4):
result += getword(grille,password)
grille = rotate(grille)
return result
May 21, 2014
Comments: