Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Rotate function solution in Clear category for Cipher Map by vnkvstnk
def rotate_grille(grille):
grille = map("".join, zip(*grille))
return [x[::-1] for x in grille]
def recall_password(grille, password):
password = "".join(password)
answer = ""
for _ in range(4):
idxs = [i for i, sym in enumerate("".join(grille)) if sym == "X"]
answer += "".join([password[idx] for idx in idxs])
grille = rotate_grille(grille)
return answer
June 2, 2019
Comments: