-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdriver.py
44 lines (37 loc) · 1.44 KB
/
driver.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
#!/usr/bin/python3
import sys
#from econosphere import *
from market import *
#import pdb; pdb.set_trace()
import pdb
#pdb.set_trace()
if __name__ == '__main__':
G=nx.MultiDiGraph()
wrld = World(g=G)
zList = wrld >> ("Alice", "Bob", "Carol", "Dylan") # returns list of zygotes
miZList = list(map(lambda obj: iNode.iZygote(obj,wrld), zList)) # iZygotes
nList = wrld << ("USA", "China", "Russia", "Ukraine") # returns list of nations
usa = nList[0]
subGov = usa >> ("NY","CA","TX")
subGov[0] << miZList # make iZygotes citizen of NY
wrld.geometrize()
institution = Institution(govList=nList, nm="WorldBank")
nyInstitution = Institution(govList=subGov, nm="PATH")
UseValue.resetUV(uvList= { 0 : "Fear", 1 : "Power",
2 : "Friendship", 3 : "Loyalty", 4 : "Love",
5 : "$$$", 6 : "Labor", 7 : "Food", 8 : "Housing" ,
9 : "Genes", 10: "Land"})
tStrip = Offer(who=subGov[0], itemList=UseValue.UV("$$$"), transWhere="*", offer=True, price="1", until="@10*10")
tBills = []
for i in range(1,10):
tBill = Offer(who=subGov[0], itemList=UseValue.UV("$$$"), transWhere="*", offer=True, price="1", until="@"+str(i)+"0")
tBills.append(tBill)
pdb.set_trace()
Node.nodes = {}
Node.indx = 0
"""
money = UseValue("medium-of-exchange")
power = UseValue("power")
fear = UseValue("fear")
print(money)
"""