-
Notifications
You must be signed in to change notification settings - Fork 0
/
example.py
37 lines (29 loc) · 1.06 KB
/
example.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
from state import state as football_state, nil_state as football_nil
from result import eval as result
from selection import typeof as selns
from trend import trend
from gfootball import gfootball
from market import *
from market import supports
most_goals = max(map(partition(goals, 'team'), len))
total_goals = len(goals)
first_goal = attr(nth(goals, 0), 'team')
assert supports(result, most_goals)
assert supports(result, total_goals)
assert supports(trend, most_goals)
assert supports(trend, total_goals)
assert supports(selns, most_goals)
assert supports(selns, total_goals)
print result(most_goals, football_state)
print result(most_goals, football_nil)
print selns(most_goals)
print trend(most_goals, football_nil, football_state)
print trend(most_goals, football_nil, football_nil)
print result(total_goals, football_state)
print result(total_goals, football_nil)
print selns(total_goals)
print trend(total_goals, football_nil, football_state)
calculate = gfootball(football_state)
print calculate(most_goals)
print calculate(total_goals)
print calculate(first_goal)