Last active
May 30, 2024 06:17
-
-
Save av1d/3c6684cfa6cfe5818546fefb76509198 to your computer and use it in GitHub Desktop.
Underwater Market Adventure - AI generated IF game (Meta Llama 2)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Underwater Market Adventure | |
# (c) 2024 av1d | |
# MIT license | |
import time | |
def start_game(): | |
print("Welcome to the Underwater Market Adventure!") | |
print("You are trapped in an underwater market, surrounded by Venus flytrap monsters.") | |
print("Your goal is to find the hidden key and escape the market inside a bubble you blew with bubblegum.") | |
print("") | |
time.sleep(2) | |
print("You find yourself in the middle of the market, surrounded by strange sea creatures.") | |
print("You see vendor carts all around you, filled with all sorts of underwater treasures.") | |
print("You also see a cluster of Venus flytraps drifting towards you, their jaws snapping hungrily.") | |
print("") | |
print("What do you do?") | |
print("A) Try to communicate with the sea creatures") | |
print("B) Search the vendor carts for the hidden key") | |
print("C) Prepare to defend yourself against the Venus flytraps") | |
print("D) Blow your bubblegum to create a protective bubble") | |
choice = input("Enter your choice: ") | |
if choice.lower() == "a": | |
communicate_with_sea_creatures() | |
elif choice.lower() == "b": | |
search_vendor_carts() | |
elif choice.lower() == "c": | |
defend_against_flytraps() | |
elif choice.lower() == "d": | |
blow_bubblegum() | |
else: | |
print("Invalid choice. Please try again.") | |
start_game() | |
def communicate_with_sea_creatures(): | |
print("You try to communicate with the sea creatures, but they just stare at you with cold, unblinking eyes.") | |
print("One of them spits a glob of slime at you, which sticks to your bubble.") | |
print("The Venus flytraps are getting closer, their jaws snapping hungrily.") | |
print("") | |
print("What do you do?") | |
print("A) Try to clean off the slime") | |
print("B) Search the vendor carts for the hidden key") | |
print("C) Prepare to defend yourself against the Venus flytraps") | |
print("D) Blow your bubblegum to create a protective bubble") | |
choice = input("Enter your choice: ") | |
if choice.lower() == "a": | |
clean_off_slime() | |
elif choice.lower() == "b": | |
search_vendor_carts() | |
elif choice.lower() == "c": | |
defend_against_flytraps() | |
elif choice.lower() == "d": | |
blow_bubblegum() | |
else: | |
print("Invalid choice. Please try again.") | |
communicate_with_sea_creatures() | |
def search_vendor_carts(): | |
print("You start searching the vendor carts, looking for any sign of the hidden key.") | |
print("After searching several carts, you spot a glint of metal on a rickety table.") | |
print("You dash over to the table and find the key, half-buried under a pile of seashells.") | |
print("You snatch up the key just as the Venus flytraps surge forward, their jaws snapping mere inches from your bubble.") | |
print("") | |
print("What do you do?") | |
print("A) Blow your bubblegum to create a protective bubble") | |
print("B) Try to outrun the Venus flytraps") | |
print("C) Prepare to defend yourself against the Venus flytraps") | |
print("D) Use the key to unlock a nearby door") | |
choice = input("Enter your choice: ") | |
if choice.lower() == "a": | |
blow_bubblegum() | |
elif choice.lower() == "b": | |
outrun_flytraps() | |
elif choice.lower() == "c": | |
defend_against_flytraps() | |
elif choice.lower() == "d": | |
use_key() | |
else: | |
print("Invalid choice. Please try again.") | |
search_vendor_carts() | |
def defend_against_flytraps(): | |
print("You prepare to defend yourself against the Venus flytraps, gripping your piece of bubblegum tightly.") | |
print("The flytraps attack, their jaws snapping wildly as they try to get past your bubble.") | |
print("You manage to fend them off, but not before one of them bites down on your bubble, causing it to shrink slightly.") | |
print("") | |
print("What do you do?") | |
print("A) Blow your bubblegum to repair your bubble") | |
print("B) Search the vendor carts for the hidden key") | |
print("C) Try to outrun the Venus flytraps") | |
print("D) Use your bubble to distract the flytraps and make a break for the surface") | |
choice = input("Enter your choice: ") | |
if choice.lower() == "a": | |
blow_bubblegum() | |
elif choice.lower() == "b": | |
search_vendor_carts() | |
elif choice.lower() == "c": | |
outrun_flytraps() | |
elif choice.lower() == "d": | |
make_break_for_surface() | |
else: | |
print("Invalid choice. Please try again.") | |
defend_against_flytraps() | |
def blow_bubblegum(): | |
print("You blow your bubblegum, expanding your bubble to its maximum size.") | |
print("The Venus flytraps are pushed back, giving you some breathing room.") | |
print("You see the key on the table, and you know you can make a break for the surface.") | |
print("") | |
print("What do you do?") | |
print("A) Grab the key and make a break for the surface") | |
print("B) Search the vendor carts for more treasures") | |
print("C) Try to communicate with the sea creatures again") | |
print("D) Prepare to defend yourself against the Venus flytraps again") | |
choice = input("Enter your choice: ") | |
if choice.lower() == "a": | |
make_break_for_surface() | |
elif choice.lower() == "b": | |
search_vendor_carts() | |
elif choice.lower() == "c": | |
communicate_with_sea_creatures() | |
elif choice.lower() == "d": | |
defend_against_flytraps() | |
else: | |
print("Invalid choice. Please try again.") | |
blow_bubblegum() | |
def outrun_flytraps(): | |
print("You try to outrun the Venus flytraps, dashing through the crowded market.") | |
print("You manage to evade them for a while, but eventually they catch up to you.") | |
print("You're forced to defend yourself, and you take a few bites to your bubble.") | |
print("") | |
print("What do you do?") | |
print("A) Blow your bubblegum to repair your bubble") | |
print("B) Search the vendor carts for the hidden key") | |
print("C) Try to communicate with the sea creatures again") | |
print("D) Use your bubble to distract the flytraps and make a break for the surface") | |
choice = input("Enter your choice: ") | |
if choice.lower() == "a": | |
blow_bubblegum() | |
elif choice.lower() == "b": | |
search_vendor_carts() | |
elif choice.lower() == "c": | |
communicate_with_sea_creatures() | |
elif choice.lower() == "d": | |
make_break_for_surface() | |
else: | |
print("Invalid choice. Please try again.") | |
outrun_flytraps() | |
def use_key(): | |
print("You use the key to unlock a nearby door, revealing a hidden passageway.") | |
print("You swim through the passageway, the Venus flytraps snapping at your heels.") | |
print("You finally emerge into the open air, gasping for breath.") | |
print("You've escaped the underwater market, but you know the Venus flytraps will be back.") | |
print("") | |
print("Congratulations, you've won the game!") | |
def make_break_for_surface(): | |
print("You grab the key and make a break for the surface, the Venus flytraps snapping at your heels.") | |
print("You swim as fast as you can, your bubble propelling you upwards.") | |
print("You finally emerge into the open air, gasping for breath.") | |
print("You've escaped the underwater market, and you've got the key to prove it.") | |
print("") | |
print("Congratulations, you've won the game!") | |
def clean_off_slime(): | |
print("You try to clean off the slime, but it's sticky and hard to remove.") | |
print("You manage to get most of it off, but your bubble is still a bit cloudy.") | |
print("The Venus flytraps are getting closer, their jaws snapping hungrily.") | |
print("") | |
print("What do you do?") | |
print("A) Search the vendor carts for the hidden key") | |
print("B) Prepare to defend yourself against the Venus flytraps") | |
print("C) Try to communicate with the sea creatures again") | |
print("D) Blow your bubblegum to create a protective bubble") | |
choice = input("Enter your choice: ") | |
if choice.lower() == "a": | |
search_vendor_carts() | |
elif choice.lower() == "b": | |
defend_against_flytraps() | |
elif choice.lower() == "c": | |
communicate_with_sea_creatures() | |
elif choice.lower() == "d": | |
blow_bubblegum() | |
else: | |
print("Invalid choice. Please try again.") | |
clean_off_slime() | |
start_game() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment