Removed halo, added tqdm instead
This commit is contained in:
parent
234a7cacd3
commit
8f116fedab
1 changed files with 3 additions and 5 deletions
|
@ -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))
|
Loading…
Reference in a new issue