Python Fantasy Text-Based RPG Game

## Activity type

Personal pursuit (eg Art / Computing / Making / Music / Drama / Sport)

## Description

During Year 9, I taught myself Python programming from scratch within one month, mastering fundamental syntax and core programming concepts. To apply my newly acquired skills, I designed and developed a complete Western fantasy-themed text-based RPG game as my first programming project.

The game features a comprehensive player system with random race assignment (Goblin, Vampire, Human, Dragon, Elf, etc.), where each race has unique attribute bonuses affecting mana, agility, defense, health points, and regeneration. I implemented a procedurally generated exploration system where players follow randomly generated paths and encounter various events. The combat system allows players to choose between ultimate attacks (consuming mana), normal attacks, or dodging (success rate determined by agility attributes). Player attributes scale with level progression – completing all turns in a path grants one level, and monster difficulty increases accordingly.

Beyond combat, I programmed diverse random events including encounters with friendly elves offering free healing (restoring full HP and mana) and goblin merchants who synthesize collected equipment. The game includes an inventory system where players can randomly find equipment (permanently boosting attribute caps) and potions (restoring consumed HP or mana).

This project taught me object-oriented programming, random number generation, game balance design, and user experience considerations. I learned to break down complex systems into manageable components and debug logical errors systematically. The biggest challenge was balancing game difficulty to ensure it remained engaging without being frustrating. Through iterative testing and adjustment, I successfully created a playable game that demonstrated my ability to transform creative ideas into functional code.

This experience solidified my passion for computer science and proved I could independently learn new technologies and complete substantial projects, which motivated me to pursue further studies in this field.

## Skills

– [x] Critical thinking

– [ ] Planning

– [ ] Artistic skills

– [ ] Communication

– [ ] Teamwork

– [ ] Leadership

– [x] Problem solving

– [x] Creativity / Innovation

– [x] Independence

– [ ] Adaptability / Resilience

– [ ] Risk-taking / Courage

– [x] Inquisitiveness

## Date started

Month: 12

Year: 2023

## Date finished

Month: 1

Year: 2024

## Referee

Name: [如果有指导老师可以填写]

Email: [如果有指导老师可以填写]

**注意**: 请补充以下信息:

– 如果有指导老师或推荐人,请提供姓名和邮箱