Compare commits
3 Commits
9a62981520
...
c01a5b645b
Author | SHA1 | Date |
---|---|---|
Nick Chambers | c01a5b645b | |
Nick Chambers | db75a84f35 | |
Nick Chambers | c538f8ac34 |
|
@ -44,7 +44,7 @@ class ProgressBar:
|
|||
def __str__(self):
|
||||
return self.render()
|
||||
|
||||
count = int(input(f"total birthdays: "))
|
||||
count = int(input(f"Total birthdays: "))
|
||||
matches = 0
|
||||
prog_bar = ProgressBar(size=MAX_SIMULATIONS, prompt="Running simulations")
|
||||
|
||||
|
|
|
@ -0,0 +1,41 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
phrase = input(f"Phrase: ")
|
||||
|
||||
bitmap = [
|
||||
"....................................................................",
|
||||
" ************** * *** ** * ******************************",
|
||||
" ********************* ** ** * * ****************************** *",
|
||||
" ** ***************** ******************************",
|
||||
" ************* ** * **** ** ************** *",
|
||||
" ********* ******* **************** * *",
|
||||
" ******** *************************** *",
|
||||
" * * **** *** *************** ****** ** *",
|
||||
" **** * *************** *** *** *",
|
||||
" ****** ************* ** ** *",
|
||||
" ******** ************* * ** ***",
|
||||
" ******** ******** * *** ****",
|
||||
" ********* ****** * **** ** * **",
|
||||
" ********* ****** * * *** * *",
|
||||
" ****** ***** ** ***** *",
|
||||
" ***** **** * ********",
|
||||
" ***** **** *********",
|
||||
" **** ** ******* *",
|
||||
" *** * *",
|
||||
" ** * *",
|
||||
"...................................................................."
|
||||
]
|
||||
|
||||
idx = 0
|
||||
|
||||
for line in bitmap:
|
||||
new_line = ""
|
||||
|
||||
for point in line:
|
||||
if point == " ":
|
||||
new_line += " "
|
||||
else:
|
||||
new_line += phrase[idx % len(phrase)]
|
||||
idx += 1
|
||||
|
||||
print(new_line)
|
Loading…
Reference in New Issue