friday 1/16/26

import random
import time

print("🎯 Welcome to the Spinner Game!")
print("Try to guess what color the spinner will land on.")
print("You earn 1 point for every correct guess.\n")

# List of possible spinner outcomes
options = ["Red", "Blue", "Green", "Yellow", "Purple", "Orange"]

points = 0
round_number = 1

while True:
    print(f"\n--- Round {round_number} ---")
    print("Options:", ", ".join(options))
    guess = input("Pick a color: ").capitalize()

    if guess not in options:
        print("That’s not on the wheel. Try again next round.")
    else:
        print("Spinning the wheel...")
        time.sleep(1)

        result = random.choice(options)
        print("The spinner is slowing down...")
        time.sleep(1)
        print("➡️ It landed on:", result)

        if guess == result:
            print("🎉 Correct! You earn 1 point.")
            points += 1
        else:
            print("❌ Not this time.")

    print(f"Your total points: {points}")

    play_again = input("Spin again? (yes/no): ").lower()
    if play_again != "yes":
        break

    round_number += 1

print("\nThanks for playing!")
print(f"Final score: {points} points")

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top