-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
47 lines (41 loc) · 1.18 KB
/
main.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
38
39
40
41
42
43
44
45
46
47
import numpy as np
from pokerSplit import *
# Player Slate (in chips)
initialSlate = {}
initialSlate['Drew'] = 38
initialSlate['John'] = 0
initialSlate['Amy'] = 168
initialSlate['Kristin'] = 0
initialSlate['Malik'] = 100
initialSlate['Manuela'] = 237
# Player Investment (in dollars)
buyIn = 10
moneyInvested = {}
moneyInvested['Drew'] = buyIn
moneyInvested['John'] = buyIn
moneyInvested['Amy'] = buyIn
moneyInvested['Kristin'] = buyIn
moneyInvested['Malik'] = buyIn
moneyInvested['Manuela'] = buyIn
# Prefered transaction links
preferedLinks = {'Drew': ['John'],
'John': ['Drew'],
'Amy': [],
'Kristin': ['Malik'],
'Malik': ['Kristin'],
'Manuela': []}
# Construct the split
slate = PlayerSlate(initialSlate=initialSlate,
moneyInvested=moneyInvested,
preferedLinks=preferedLinks)
# Print initial stat
print('\nINDIVIDUAL GAINS')
slate.log(slate.initialSlate)
# Equilibriate scores
slate.equilibrate()
# Print list of transactions
print('\nREQUIRED TRANSACTIONS')
slate.logTransactions()
# Print final slate
print('\nFINAL SLATES')
slate.log(slate.currentSlate)