top of page

Cells - The Great Battle

Python-based Project.

This is a text based RPG where you take on the role of a cell, battling your way through enemies. The purpose of this game is to be a fun science revision tool while having a fun experience.

Introduction

In this game you will play as a cell. You will have to fight through enemies to gain gold, and buy upgrades for yourself from the store. Your stats also matter. In this game, your health is Strength * 5 + Intelligence * 2 and your MP (The thing used for special attacks) is calculated by taking your intelligence * 7. While you are fighting an enemy,  you will need to answer a science question correctly for each attack. I wanted to create this as I was interested in science, and this would be a fun science revision tool to remember science concepts while having a fun experience Remember to share with your friends to allow them to have a fun revision time!

Code Highlights

I created a function with a list containing a list to store questions to get a random question from the list of questions (Lines 31-79) when needed and to check if player input is correct.

 

I also created different enemy cells based on real life cells (e.g Cancer, Herpes, HIV, Flu) that have different special abilities based on the cells' real effects like reducing player's attacks by 20%.

​

There is a special easter egg in my code, granting you the rights to over ride the game and select the next enemy and your current gold balance. Initially, it was a way for me to test the code but decided to leave it in the code as an easter egg.

image.png

Reflections

I coded a simple turn-based RPG game where you play as immune cells fighting viruses. At first, it was hard to manage the game loop, inputs, and all the stats, but I slowly figured it out. The trivia part gave me some bugs to fix, especially checking correct answers. I’m proud I got it working — it was fun mixing biology with coding, and I learned a lot about logic and structure in Python.

©2025 by Jack. Proudly created with Wix.com

bottom of page