fogolydilemma/strat/main.py
Torma Kristóf d580e9f91a
All checks were successful
continuous-integration/drone/push Build is passing
add type hinting
2020-09-11 03:00:39 +02:00

15 lines
240 B
Python

# Y8O353, E0HJQL
def avg(ls: list) -> int:
if len(ls) != 0:
return sum(ls) / len(ls)
else:
return 0
def decision(h1: list, h2: list) -> int:
if avg(h2[:4]) >= 0.05:
return 1
else:
return 0