Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
9-liner: numpy.rot90(grille, -1) in a loop solution in 3rd party category for Cipher Map by Stensen
import numpy as np
def recall_password(grille, password, answer=''):
grille = np.array([list(i) for i in grille])
X_coords = lambda G: [(j, i) for j in range(len(G)) for i in range(len(G[0])) \
if grille[j][i] == 'X']
for _ in range(1, 5):
for (x, y) in X_coords(grille): answer += password[x][y]
grille = np.rot90(grille, -1)
return answer
Nov. 10, 2020
Comments: