Prompt

Stock Market Simulation Game for Classroom Use V1

November 9, 2025 Todd Benrud Teacher Prompts

Outlines a three-step AI prompting process for creating an interactive stock market game in Claude Artifacts. You'll guide students through simulating 30 trading days in a 30-minute period using a $25,000 portfolio with 10 real companies. The React-based game includes real-time price changes, random news events, buy/sell functionality, and tracks both unrealized and realized gains. It requires no backend or data persistence, making it perfect for quick classroom deployment. Students experience authentic trading dynamics including market volatility, earnings reports, and portfolio management in an engaging, time-compressed format.

Content

The following prompt was used to develop the custom instructions that Claude Artifacts used to develop an interactive learning experience to simulate creating and managing a stock market portfolio.


Prompt #1 (STEP ONE):

Help me develop an AI Prompt for Claude Artifacts that will build a simple stock market game. The game must simulate 30 days of investing within a 30-minute class period.


Present students with a list of 10 globally known companies they can invest in. They have a $25,000 cash balance. They must be able to buy shares and sell shares in these companies to build a portfolio. The entire time, prices must change, and their portfolio balance must update in real-time. Track both unrealized and realized gains(losses). Simulate earnings and news events sporadically throughout the 30-minute session.


No back end, and nothing will persist. This must work in the Claude Artifacts environment. 

Before answering, if needed, ask me as many clarifying questions as necessary to ensure your response adds value.


Clarifying Questions #1 (STEP TWO):

Thoughtfully answer any clarifying questions you are asked.


Prompt #2 (STEP Three This prompt was developed by an AI. I will give this prompt to Claude. You will use the prompt answers generated. ):


Create an interactive stock market simulation game as a React artifact with the following specifications:


Core Requirements

Build a 30-minute stock market game that simulates 30 trading days. Students start with $25,000 cash and can trade stocks from 10 globally recognized companies.

Companies to Include

Use these 10 well-known companies with realistic starting prices:

  • Apple (AAPL) - ~$175
  • Microsoft (MSFT) - ~$380
  • Amazon (AMZN) - ~$145
  • Google/Alphabet (GOOGL) - ~$140
  • Tesla (TSLA) - ~$245
  • Coca-Cola (KO) - ~$62
  • McDonald's (MCD) - ~$295
  • Nike (NKE) - ~$75
  • Disney (DIS) - ~$95
  • Walmart (WMT) - ~$165

Game Mechanics

Time System:

  • 30 simulated days compressed into 30 minutes (90 seconds per trading day)
  • Display current day number and time remaining prominently
  • Auto-advance days with a visible countdown timer

Price Movement:

  • Prices fluctuate realistically every day (±0.5% to ±4% typical movement)
  • Occasional larger swings (±5% to ±12%) for volatility
  • Prices should never go below $5 to keep the game realistic

Trading System:

  • Buy stocks: Enter number of shares, show total cost, confirm transaction
  • Sell stocks: Only allow selling shares they own, show proceeds
  • Validate sufficient cash before purchases
  • Update portfolio immediately after each trade
  • Show transaction history/log

Portfolio Tracking:

  • Display current cash balance
  • Show all owned stocks with: company name, ticker, shares owned, purchase price average, current price, current value
  • Calculate and display unrealized gains/losses (current holdings)
  • Calculate and display realized gains/losses (from completed sell transactions)
  • Show total portfolio value (cash + stock holdings value)
  • Display overall gain/loss percentage from starting $25,000

Random Events

Trigger 8-12 news events randomly throughout the 30 minutes:

Positive Events (stock price jumps 8-15%):

  • "Earnings beat expectations"
  • "Major product launch success"
  • "Strategic partnership announced"
  • "Expansion into new markets"

Negative Events (stock price drops 8-15%):

  • "Earnings miss expectations"
  • "Product recall announced"
  • "Regulatory investigation"
  • "Supply chain disruptions"

Display events prominently: Show a notification banner with company name, event description, and price impact that auto-dismisses after a few seconds but also logs to an event history panel.

UI/UX Requirements

  • Clean, professional dashboard layout resembling a trading platform
  • Color coding: Green for gains, red for losses
  • Responsive design that works on laptop screens
  • Real-time updates - all numbers update smoothly as prices change
  • Clear visual hierarchy: Most important info (portfolio value, cash) at the top
  • Stock list: Sortable table with current prices and +/- change indicators
  • End game screen: Show final results, best/worst performers, and trading statistics

Technical Constraints

  • Use only React with Hooks (useState, useEffect, useRef)
  • Use Tailwind CSS for styling
  • No external APIs or backend
  • No localStorage - everything in memory only
  • All state managed in React component
  • Smooth animations for price changes and transitions

Additional Features

  • Pause/Resume button for the simulation
  • Visual price charts (simple line graphs) for each stock showing the 30-day trend
  • Leaderboard-ready: Display final portfolio value as a clear "score"
  • Confetti or celebration effect if student doubles their money

Build this as a single, fully-functional React component that works immediately in Claude Artifacts.



Related Content
Prompt
Resume Refinement AI Prompts for Educational Leaders V1
These are three sequential prompts you can use with AI to refine your resume for educational technology positions. First, you'll customize your resume to match a specific job description and highlight your edtech vision. Second, you'll receive candid...
Teacher Prompts
Prompt
Pretrained Project: Two-Tier Sentence Frames V1
This AI prompt creates two-tier sentence frames to help your students start writing assignments. Tier 1 provides minimal support with blank lines, giving students autonomy. Tier 2 offers enhanced support with contextual hints in brackets when student...
Student Prompts
Prompt
Flash Card Generator Prompt: OpenSciEd C.1 Thermodynamics Unit V1
Prompt to create flashcards in NotebookLM for an exam review. This is a first attempt, untested prompt. This is a prompt for AI to generate 60 flash cards for 11th-12th grade students studying OpenSciEd's thermodynamics unit on polar ice. You'll use ...
Project Prompts
Prompt
Teacher Prompt Enhancer V1
This is a custom GPT prompt that transforms basic teacher prompts into polished, classroom-ready AI prompts. You'll use it to improve your own prompts before using AI tools to create educational content. It analyzes your initial prompt for missing de...
Teacher Prompts
Prompt
PDF Data Extractor and Link Creator V1
This tool automates prefilled Google Form URLs from PDF grade reports, eliminating manual data entry for teachers submitting multiple student grades. You upload PDF grade reports and provide your teacher name, and the system extracts each student's i...
Teacher Prompts
Prompt
CTE Standards Alignment Analyzer V1
This AI analyzes student Learning Experiences and generates comprehensive CTE standards alignment documentation for compliance with district, state, and federal requirements. The AI parses learning objectives, activities, and assessments, then cross-...
Teacher Prompts