manually looking at outputs for 20
This commit is contained in:
parent
01611d6bfc
commit
74e98ac3a6
12
zwanzig.py
12
zwanzig.py
|
@ -50,10 +50,20 @@ def pulse(signal=0, to=broadcaster, fro=None):
|
|||
queue_pulse(0, o, to)
|
||||
else:
|
||||
queue_pulse(1, o, to)
|
||||
if to == 'rx':
|
||||
#for node in ('gc sz cm xf zr'.split()):
|
||||
#if not done[i] and all(conjunctions[node][2].values()):
|
||||
for node in ('zr',):
|
||||
if not done[i] and any(conjunctions[node][2].values()):
|
||||
done[i] = True
|
||||
print(i)
|
||||
print(node, conjunctions[node], signal, pulses)
|
||||
|
||||
queue = deque()
|
||||
|
||||
for i in range(1000):
|
||||
done = defaultdict(lambda: False)
|
||||
|
||||
for i in range(1000000):
|
||||
pulse()
|
||||
while queue:
|
||||
pulse(*queue.popleft())
|
||||
|
|
Loading…
Reference in New Issue