I shook the 8 Ball until it told me it's darkest secrets.
This commit is contained in:
parent
85fb1b6a9b
commit
6fe35a5047
|
|
@ -1,3 +1,7 @@
|
|||
# PyF8-Ball
|
||||
## The Mysterious Pythonic Fate Ball
|
||||
|
||||
Let python decide your fate via 8-Ball logic!
|
||||
|
||||
Call the script with a question. Get an answer.
|
||||
|
||||
Results may vary. No warranty or guarantee of any kind is implied.
|
||||
|
|
|
|||
|
|
@ -0,0 +1,32 @@
|
|||
#!/usr/bin/python
|
||||
|
||||
import random
|
||||
import sys
|
||||
|
||||
def magic_fate_ball():
|
||||
# Define possible responses
|
||||
responses = [
|
||||
"Aye!",
|
||||
"Nay",
|
||||
"Affirmative.",
|
||||
"Negative.",
|
||||
"Yes!",
|
||||
"No.",
|
||||
"Look deep inside and ask your self."
|
||||
"Maybe?",
|
||||
"Ask again later.",
|
||||
"Cannot predict now.",
|
||||
"Don't count on it!",
|
||||
"Very doubtful.",
|
||||
"Outlook Good!",
|
||||
"Don't bet the farm on it.",
|
||||
"This is The Way."
|
||||
]
|
||||
|
||||
# Display a random response
|
||||
response = random.choice(responses)
|
||||
print(f"The Pythonic Fate Ball says: {response}")
|
||||
|
||||
if __name__ == "__main__":
|
||||
magic_fate_ball()
|
||||
|
||||
Loading…
Reference in New Issue