Few fixes of the main script

master
LEdoian 3 years ago
parent 37d55b8e3b
commit 82905c2b20

@ -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():

Loading…
Cancel
Save