remove leftovers from the pattern

workspace
km0 2 years ago
parent d3f0ac6585
commit 78bd042780

@ -117,10 +117,11 @@ class Soup(Bureau):
text_a_cursor = 0
text_b_cursor = 0
length = len(list_a) + len(list_b) - 2
length = len(list_a) + len(list_b)
repeated_pattern = (self.pattern * (length // len(self.pattern))
) + self.pattern[:(length % len(self.pattern))]
repeated_pattern = (self.pattern * (length // len(self.pattern)))
# + self.pattern[:(length % len(self.pattern))]
for choice in repeated_pattern:
if choice == 'A':

Loading…
Cancel
Save