Rename file, extend rules a bit

This commit is contained in:
Klaus-Uwe Mitterer 2016-02-08 01:32:17 +01:00
parent 012719682c
commit 5820436b11

View file

@ -2,9 +2,9 @@
import argparse import argparse
def verifier(i1, i2): def haps(i1, i2):
try: try:
if int(max(i1, i2)) / 2 + 7 > int(min(i1, i2)) or int(min(i1, i2)) < 14: if (max(i1, i2) / 2 + 7 > min(i1, i2) and max(i1, i2) - min(i1, i2) > 2) or (min(i1, i2) < 14 and (max(i1, i2) - min(i1, i2) > 1) or min(i1, i2) < 12):
return False return False
return True return True
except ValueError: except ValueError: