|
|
@ -39,7 +39,7 @@ class Computer:
|
|
|
|
|
|
|
|
|
|
|
|
# Computers:
|
|
|
|
# Computers:
|
|
|
|
comps = {}
|
|
|
|
comps = {}
|
|
|
|
for i, n in enumerate('ABCDEFGHIX'):
|
|
|
|
for i, n in enumerate('ABCDEFGHIX', start=1):
|
|
|
|
comps[n] = Computer(n, i)
|
|
|
|
comps[n] = Computer(n, i)
|
|
|
|
|
|
|
|
|
|
|
|
# Bridges
|
|
|
|
# Bridges
|
|
|
@ -72,6 +72,7 @@ for net, cs in conns.items():
|
|
|
|
for c in cs:
|
|
|
|
for c in cs:
|
|
|
|
comps[c].add_to_bridge(bridges[net])
|
|
|
|
comps[c].add_to_bridge(bridges[net])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
os.mkdir('output')
|
|
|
|
dump_bridges('output/bridges')
|
|
|
|
dump_bridges('output/bridges')
|
|
|
|
|
|
|
|
|
|
|
|
for c in comps.values():
|
|
|
|
for c in comps.values():
|
|
|
|