f8-ball/f8ball.py

40 lines
996 B
Python
Executable File

#!/usr/bin/python
from colorama import Fore, Style, init
import random
import sys
init(autoreset=True)
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."
]
# Choose a random color for each response
response_colors = [Fore.RED, Fore.GREEN, Fore.YELLOW, Fore.CYAN, Fore.MAGENTA, Fore.BLUE, Fore.WHITE]
# Display a random response with a random color
response = random.choice(responses)
response_color = random.choice(response_colors)
print(f"The Pythonic Fate Ball says: {response_color}{response}{Style.RESET_ALL}")
if __name__ == "__main__":
magic_fate_ball()