Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
perimeters solution in Clear category for Paper Dice by ogoro
PERIMETERS = ('1265126', '1364136', '2354235')
def paper_dice(paper):
rows = [row.strip() for row in paper]
columns = [''.join(c).strip() for c in zip(*paper)]
for line in rows + columns:
if not any(line in perimeter or line[::-1] in perimeter for perimeter in PERIMETERS):
return False
return True
Jan. 19, 2021
Comments: