diff --git a/day11/solution.py b/day11/solution.py index 422ce63..59c4ba6 100644 --- a/day11/solution.py +++ b/day11/solution.py @@ -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)) \ No newline at end of file + print(str(answer)) \ No newline at end of file