t
def score_single(offset,value): if not value: return -1 elif (offset == 1 or offset == 2 or offset ==20 or offset == 22 or offset == 24): print("value is ",value, "offset is ",offset) return 100 - 25 * (value - 1) elif offset == 3 or offset ==4 or offset ==5 or offset ==6 or offset ==7 or offset ==8 or offset ==9 or offset ==10 or offset ==11 or offset ==12: if value == 1: return 0 elif value == 2: return 50 elif value == 3: return 100 elif offset == 21: return 100 - (20 * (value - 1)) elif offset == 13 or offset ==14 or offset ==15 or offset ==16 or offset ==17 or offset ==18 or offset ==19: return 25 * (value - 1) elif offset >= 23: return 100 - (20* (value - 1))
Leave a Comment