fogolydilemma/strat/main.py

11 lines
125 B
Python
Raw Normal View History

2020-09-11 00:56:04 +02:00
# Y8O353, E0HJQL
2020-09-11 00:27:55 +02:00
2020-09-11 00:56:04 +02:00
import numpy as np
2020-09-11 00:45:03 +02:00
2020-09-11 00:27:55 +02:00
def decision(h1, h2):
2020-09-11 00:56:04 +02:00
if 1 in h2[:4]:
2020-09-11 01:53:13 +02:00
return 1
2020-09-11 00:27:55 +02:00
else:
2020-09-11 00:45:03 +02:00
return 0