From 6fe35a50473d24cd8eb2b1e7e572d2dd7faa7ee3 Mon Sep 17 00:00:00 2001 From: CSnap Date: Fri, 17 Nov 2023 00:42:01 +0000 Subject: [PATCH] I shook the 8 Ball until it told me it's darkest secrets. --- README.md | 8 ++++++-- f8ball.py | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+), 2 deletions(-) create mode 100755 f8ball.py diff --git a/README.md b/README.md index 779c545..02cd0b9 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,7 @@ -# PyF8-Ball +## The Mysterious Pythonic Fate Ball -Let python decide your fate via 8-Ball logic! \ No newline at end of file +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. diff --git a/f8ball.py b/f8ball.py new file mode 100755 index 0000000..5070a87 --- /dev/null +++ b/f8ball.py @@ -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() +