fogolydilemma/strat/main.py
Torma Kristóf cfd8f3b899
Some checks failed
continuous-integration/drone/push Build is failing
average strategy with not fucked avg function
2020-09-11 00:46:33 +02:00

16 lines
215 B
Python

import numpy as np
def avg(ls: list) -> int:
if len != 0:
return sum(ls) / len(ls)
else:
return 0
def decision(h1, h2):
if avg(h2) > 0.51:
return 1
else:
return 0