repo structure

This commit is contained in:
2020-09-11 00:27:55 +02:00
commit 8752db2d57
8 changed files with 98 additions and 0 deletions

13
strat/main.py Normal file
View File

@ -0,0 +1,13 @@
import numpy as np
def decision(h1, h2):
if len(h1) == 0:
r = np.random.randint(2)
return r
else:
avg = 1.0 * sum(h1) / len(h1)
if avg <= 0.5:
return 0
else:
return 1