|
|
@ -110,13 +110,17 @@ class Soup(Bureau):
|
|
|
|
with open(os.path.join(self.mdir, 'contents', self.input_queue[1] + '.txt'), 'r') as f:
|
|
|
|
with open(os.path.join(self.mdir, 'contents', self.input_queue[1] + '.txt'), 'r') as f:
|
|
|
|
list_b = f.read().split(' ')
|
|
|
|
list_b = f.read().split(' ')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
self.print_small(f'pattern: {self.pattern}')
|
|
|
|
|
|
|
|
self.print_small(
|
|
|
|
|
|
|
|
f'in the queue: {self.input_queue[0]}, {self.input_queue[1]}')
|
|
|
|
|
|
|
|
|
|
|
|
text_a_cursor = 0
|
|
|
|
text_a_cursor = 0
|
|
|
|
text_b_cursor = 0
|
|
|
|
text_b_cursor = 0
|
|
|
|
|
|
|
|
|
|
|
|
length = len(list_a) + len(list_b)
|
|
|
|
length = len(list_a) + len(list_b)
|
|
|
|
|
|
|
|
|
|
|
|
repeated_pattern = (self.pattern * (length // len(self.pattern))
|
|
|
|
repeated_pattern = (self.pattern * (length // len(self.pattern))
|
|
|
|
) + (length % self.pattern)
|
|
|
|
) + (length % len(self.pattern))
|
|
|
|
|
|
|
|
|
|
|
|
for choice in repeated_pattern:
|
|
|
|
for choice in repeated_pattern:
|
|
|
|
if choice == 'A':
|
|
|
|
if choice == 'A':
|
|
|
|