Removed halo, added tqdm instead

This commit is contained in:
Andreas 2024-12-11 10:36:07 +01:00 committed by Andreas
parent 234a7cacd3
commit 8f116fedab

View file

@ -1,11 +1,9 @@
from halo import Halo
from tqdm import tqdm
from argparse import ArgumentParser
spinner = Halo(text="Blinking all the stones", spinner="dots")
def main(input, iterations):
spinner.start()
input_list: list = input.split(" ")
for _ in range(iterations):
for _ in tqdm(range(iterations)):
new_stones = []
for num in input_list:
if num == '0':
@ -33,4 +31,4 @@ if __name__ == "__main__":
input_text = open(args.file, 'r').read()
iterations = 25 if args.part == "1" else 75 if args.part == "2" else None
answer = main(input_text, iterations)
spinner.succeed(str(answer))
print(str(answer))