Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
6-liner: mumbo jumbo solution in Creative category for Paper Dice by przemyslaw.daniel
def paper_dice(p, q=(1, -1, 1j, -1j), g=range):
k = {30j, 6j, 18+6j, 45+30j, 5+10j, 10j, 17+19j, 8+14j, 9+12j, 3+6j, 30+35j}
s = {x+y*1j: int(p[x][y])for x in g(len(p))for y in g(len(p[0]))if p[x][y] != ' '}
c = list(__import__('itertools').combinations(s, 2))
t, p = [s[x]+s[y]for x,y in c if abs(x-y)>=2], eval('*'.join(str(x-y)for x,y in c))
return t.count(7)==3 and bool({p*x/80 for x in q}&(k|{x.conjugate() for x in k}))
Aug. 13, 2018
Comments: