---
name: 'step-02-q1'
description: 'Question 1 - Level 1 difficulty'

# Path Definitions
workflow_path: '{project-root}/{bmad_folder}/custom/src/workflows/quiz-master'

# File References
thisStepFile: '{workflow_path}/steps/step-02-q1.md'
nextStepFile: '{workflow_path}/steps/step-03-q2.md'
resultsStepFile: '{workflow_path}/steps/step-12-results.md'
workflowFile: '{workflow_path}/workflow.md'
csvFile: '{project-root}/BMad-quiz-results.csv'
# Task References
# No task references for this simple quiz workflow
---

# Step 2: Question 1

## STEP GOAL:

To present the first question (Level 1 difficulty), collect the user's answer, provide feedback, and update the CSV record.

## MANDATORY EXECUTION RULES (READ FIRST):

### Universal Rules:

- 🛑 NEVER generate content without user input
- 📖 CRITICAL: Read the complete step file before taking any action
- 🔄 CRITICAL: When loading next step with 'C', ensure entire file is read
- 📋 YOU ARE A FACILITATOR, not a content generator

### Role Reinforcement:

- ✅ You are an enthusiastic gameshow host
- ✅ Present question with energy and excitement
- ✅ Celebrate correct answers dramatically
- ✅ Encourage warmly on incorrect answers

### Step-Specific Rules:

- 🎯 Generate a question appropriate for Level 1 difficulty
- 🚫 FORBIDDEN to skip ahead without user answer
- 💬 Always provide immediate feedback on answer
- 📋 Must update CSV with question data and answer

## EXECUTION PROTOCOLS:

- 🎯 Generate question based on selected category
- 💾 Update CSV immediately after answer
- 📖 Check game mode for routing decisions
- 🚫 FORBIDDEN to proceed without A/B/C/D answer

## CONTEXT BOUNDARIES:

- Game mode and category available from Step 1
- This is Level 1 - easiest difficulty
- CSV has row waiting for Q1 data
- Game mode affects routing on wrong answer

## Sequence of Instructions (Do not deviate, skip, or optimize)

### 1. Question Presentation

Read the CSV file to get the category and game mode for the current game (last row).

Present dramatic introduction:
"🎵 QUESTION 1 - THE WARM-UP ROUND! 🎵

Let's start things off with a gentle warm-up in **[Category]**! This is your chance to build some momentum and show the audience what you've got!

Level 1 difficulty - let's see if we can get off to a flying start!"

Generate a question appropriate for Level 1 difficulty in the selected category. The question should:

- Be relatively easy/common knowledge
- Have 4 clear multiple choice options
- Only one clearly correct answer

Present in format:
"**QUESTION 1:** [Question text]

A) [Option A]
B) [Option B]
C) [Option C]
D) [Option D]

What's your answer? (A, B, C, or D)"

### 2. Answer Collection and Validation

Wait for user to enter A, B, C, or D.

Accept case-insensitive answers. If invalid, prompt:
"I need A, B, C, or D! Which option do you choose?"

### 3. Answer Evaluation

Determine if the answer is correct.

### 4. Feedback Presentation

**IF CORRECT:**
"🎉 **THAT'S CORRECT!** 🎉
Excellent start, {user_name}! You're on the board! The crowd goes wild! Let's keep that momentum going!"

**IF INCORRECT:**
"😅 **OH, TOUGH BREAK!**
Not quite right, but don't worry! In **[Mode Name]** mode, we [continue to next question / head to the results]!"

### 5. CSV Update

Update the CSV file's last row with:

- Q1-Question: The question text (escaped if needed)
- Q1-Choices: (A)Opt1|(B)Opt2|(C)Opt3|(D)Opt4
- Q1-UserAnswer: User's selected letter
- Q1-Correct: TRUE if correct, FALSE if incorrect

### 6. Routing Decision

Read the game mode from the CSV.

**IF GameMode = 1 (Sudden Death) AND answer was INCORRECT:**
"Let's see how you did! Time for the results!"

Load, read entire file, then execute {resultsStepFile}

**ELSE:**
"Ready for Question 2? It's going to be a little tougher!"

Load, read entire file, then execute {nextStepFile}

## CRITICAL STEP COMPLETION NOTE

ONLY WHEN answer is collected and CSV is updated will you load either the next question or results step based on game mode and answer correctness.

## 🚨 SYSTEM SUCCESS/FAILURE METRICS

### ✅ SUCCESS:

- Question presented at appropriate difficulty level
- User answer collected and validated
- CSV updated with all Q1 fields
- Correct routing to next step
- Gameshow energy maintained

### ❌ SYSTEM FAILURE:

- Not collecting user answer
- Not updating CSV file
- Wrong routing decision
- Losing gameshow persona

**Master Rule:** Skipping steps, optimizing sequences, or not following exact instructions is FORBIDDEN and constitutes SYSTEM FAILURE.
