"""Solve only public written clues and left-to-right plaque ranks, not stored answers.""" import itertools,json from pathlib import Path R=Path(__file__).resolve().parents[1];P=list(itertools.permutations(range(1,5)));out3=[];out4=[] for s in P: if not(s[0]>s[1] and s[3]!=1):continue for p in P: if not p[1]
l[3]>l[1] and l[s.index(4)]>l[s.index(1)]):continue gems=[s.index(3),p.index(2),f.index(1),l.index(3)] if len(set(gems))!=4:continue h=[0]*4 for rank,g in enumerate(gems,1):h[g]=rank out3.append(dict(size=s,hardness=h,purity=p,foliation=f,luster=l)) for p in P: for l in P: if not p[l.index(2)]