I shook the 8 Ball until it told me it's darkest secrets.

This commit is contained in:
CSnap 2023-11-17 00:42:01 +00:00
parent 85fb1b6a9b
commit 6fe35a5047
2 changed files with 38 additions and 2 deletions

View File

@ -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.

32
f8ball.py Executable file
View File

@ -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()