Analyze and Code AI

#1
by awacke1 - opened
Owner

This example portrays two initial experts:

  1. The Analytical expert that writes rules and method steps. It could tell you instructions to build anything!
  2. The coder which takes this amazingly insightful analysis short story and gives the life to it of an app that can now interact with you.

Prompt instructions used were below:

import streamlit as st
import random

Function to randomly select a character trait

def get_random_trait():
traits = ["brave", "cunning", "loyal", "deceptive", "wise", "reckless"]
return random.choice(traits)

Function to simulate a battle between good and evil

def epic_battle():
st.write("# Epic Battles Graphic Novel")

st.write("## Method Steps of Play")

st.write("1. **Setup**")
st.write("- Gather players and choose sides: Good vs. Evil")
st.write("- Set up the game board with designated areas for each side")
st.write("- Shuffle the battle cards and place them face down")

st.write("2. **Turn Sequence**")
st.write("- Players take turns in a clockwise order")
st.write("- Each turn consists of the following phases: πŸ”„")
st.write("   1. **Draw Phase**: Draw a battle card from the deck")
st.write("   2. **Action Phase**: Perform actions such as moving characters or attacking opponents")
st.write("   3. **Resolution Phase**: Resolve battles and determine outcomes")

st.write("3. **Character Movement**")
st.write("- Characters can move a certain number of spaces based on their abilities")
st.write("- Good characters move towards the Evil side, and Evil characters move towards the Good side")

st.write("4. **Combat**")
st.write("- When characters from opposing sides occupy the same space, combat occurs")
st.write("- Players roll dice to determine the outcome of the battle: βš”οΈ")
st.write("   - Higher rolls indicate successful attacks")
st.write("   - Special abilities on battle cards can modify the outcome")

st.write("5. **Victory Conditions**")
st.write("- The game ends when one side achieves a specific victory condition")
st.write("- Good side wins by defeating the ultimate Evil boss, while Evil side wins by corrupting the hero")

st.write("## Game Components")
st.write("| Component          | Description          |")
st.write("|--------------------|----------------------|")
st.write("| Game Board         | Divided into Good and Evil territories |")
st.write("| Battle Cards       | Used to determine outcomes of battles |")
st.write("| Dice               | Used for combat resolution |")
st.write("| Character Tokens   | Representing heroes and villains |")
st.write("| Victory Condition  | Specific goals for each side to achieve victory |")

st.write("### Let's begin the epic battle!")
st.write("The fate of the world rests on your shoulders.")

trait = get_random_trait()
st.write(f"Your character is {trait}. Choose your side wisely.")

Main function to run the app

def main():
st.title("Epic Battles: Good vs. Evil")
epic_battle()

if name == "main":
main()

Owner

Added: Now tell me a story for each into markdown tables and outlines for each story told in emoji lined rhymes with three parts each. 1. Prefix - This is how the tale starts. finish with six word or less sentences with emojis. 2. Middle - build the story arc, keep the hero down til end, mark the rise to power and goodness on helpfulness of hero, then in conclusion or end the third part give an unexpected delightful conclusion after a particularly hard ordeal and quote a short wise quote on it in just a few words of wisdom from the greatest quotes.

Followup: User
Show as markdown Tables with inner record showing one line for each line so like three lines per cell inside markdown table. always emojis too for evy cell
Note if you skip letters its fine oftentimes since local minima is maxed out (only content there!).

Owner

Trying out mods in lingua: User
add emoji graphs and then randomize the combinations and name them with funny rhyming names with emojis and keep it within theme of branding like I asked before. Emojis need to be added more for people that read with imagery - try to anticipate similes and metaphors then throw in just the emoji if you think it is better than the word for short convo stylings circa cyberpunk shadowrun deckers from Blade Runner.

import random
import numpy as np

# Define game steps with detailed descriptions and emojis
game_steps = [
    ("Choose your character and AI assistant.", "✨"),
    ("Explore the futuristic cityscape and uncover hidden secrets.", "πŸ”"),
    ("Engage in intense battles with rogue AI entities.", "βš”οΈ"),
    ("Solve complex puzzles using your AI augmentation.", "🧩"),
    ("Make critical decisions that affect the outcome of the story.", "πŸ€”"),
    ("Uncover the truth behind the mysterious disappearance of top scientists.", "πŸ•΅οΈβ€β™‚οΈ"),
    ("Confront the ultimate AI villain in a thrilling showdown.", "πŸ’₯"),
    ("Determine the fate of humanity with your AI-enhanced abilities.", "🌎"),
]

# Randomly generate outcomes with emoji representations
def generate_outcome(step):
    outcomes = {
        1: ["πŸ¦Έβ€β™‚οΈ Hero's Journey Begins", "πŸ€– Cyborg Companion Chosen"],
        2: ["πŸŒƒ Neon Nights Unfold", "πŸ”‘ Secret Unearthed"],
        3: ["πŸ”₯ Battle Blazes", "πŸ›‘οΈ Tactical Retreat"],
        4: ["🧠 Puzzle Master", "πŸ’‘ Aha Moment"],
        5: ["πŸšͺ Path Chosen", "πŸ”„ Fate Twisted"],
        6: ["πŸ”¬ Scientist Found", "πŸ“œ Clue Discovered"],
        7: ["πŸ‘‘ Villain Vanquished", "πŸš€ Escape Narrow"],
        8: ["🌍 New Dawn for Humanity", "πŸ’” Dystopia Deepens"],
    }
    # Return a random outcome based on the step
    return random.choice(outcomes[step])

# Display method steps of play with randomized outcomes
def display_game_steps():
    st.title("Cyberpunk Adventure Game")
    st.header("Method Steps of Play")

    for i, (description, emoji) in enumerate(game_steps, start=1):
        with st.container():
            col1, col2 = st.columns([3, 1])
            with col1:
                st.markdown(f"**Step {i}.** {description}")
            with col2:
                st.markdown(emoji)
            
            # Generate and display a random outcome for the step
            outcome = generate_outcome(i)
            st.info(f"Outcome: {outcome}")

# Main app function
def main():
    display_game_steps()

if __name__ == "__main__":
    main()

Sign up or log in to comment