Module 4 Capstone

Module 4 Capstone β€” Quest for the Star Crystal
CORE PYTHON FOUNDATION Β· MODULE 4 CAPSTONE Β· UNIT 12

Quest for the Star Crystal

You are a junior game developer at CodeQuest Studios. Your final module challenge is to connect the systems you have already learned into one mini RPG. Create Nova, manage inventory, track a quest, battle an enemy, earn XP, and level up the hero.

What You Will Connect

Character CreationUse dictionaries to store a hero’s name, health, level, and XP.
Inventory ManagementUse lists and simple functions to collect, use, and display game items.
Quest TrackingStore quest status and rewards, then update them when goals are completed.
Enemy EncountersUse functions, conditions, and loops to run a simple battle.
Player ProgressionAward XP and level up the hero when requirements are met.
Teen-friendly design: The capstone does not introduce classes, files, or new advanced Python. Every challenge combines skills from earlier modules using short, readable code. Use Run & Verify, two progressive hints, the AI Tutor, and the solution unlock after three failed attempts.

Your Game Mission

Starfall Village has lost the powerful Star Crystal. Nova must prepare for the journey, accept the quest, enter the Shadow Cave, defeat the Shadow Beast, recover the crystal, and return stronger than before.

1. Create NovaBuild the hero profile and display starting stats.
2. Prepare GearCreate an inventory, collect a key, and use a potion.
3. Track the QuestStore the mission, check progress, and complete it.
4. BattleCreate an enemy and fight using conditions, functions, and a loop.
5. ProgressEarn XP, level up, and display the completed adventure.
player = {“name”: “Nova”, “health”: 100, “level”: 1, “xp”: 0} inventory = [“Wooden Sword”, “Health Potion”] quest = {“name”: “Find the Star Crystal”, “status”: “Active”}

Capstone flow: character creation β†’ inventory β†’ quest tracking β†’ enemy encounter β†’ rewards β†’ player progression β†’ final Mini RPG Framework.

DataSoSi Teen Python Project
Core Python Foundation Β· Module 4 Capstone Β· Quest for the Star Crystal
Game Challenge
Module 4 rule: Think in connected systems. Keep each piece simple, then connect it to the next piece of the RPG.
Python Game Lab
In [ ]:
Game output:
Loading Python…
AI Tutor
✦ Star Crystal Coding Tutor
Ask about the current challenge in your own words. I can help with the code, output, variables, game logic, or a hint without jumping straight to the answer.