​Code Xperiment (The Quest For Knowledge)

Embark on an exciting RPG (role-playing game) where knowledge is key! Challenge your understanding and enhance your science skills while defeating enemies through scientific interactions. Perfect for players of all ages, this game makes learning fun and engaging, combining the best of both worlds!
Watch the demo of my game: https://drive.google.com/file/d/1FLPL2q4TJ9_PjbaGpFxqIvDsrzzA0ZX0/view?usp=drive_link
About the game
This RPG game allows players to conquer levels as they overcome enemies with Science knowledge of interactions, getting upgrades from the shop along the way.
How I created it
This RPG (role-playing game) is built in Python. As a player, you can choose among 3 roles, each with different pros and cons. Using your knowledge of Science concepts and interactions, this game allows players to challenge and conquer random enemies with the random module in the Python library. In each battle, you will be given the aim (eg: Make Vinegar fizz!) and some options to choose from, among which only one is correct. Choose the correct option to defeat the enemy and earn stats! Players can also get upgrades from the shop using gold they earn from battles to gear up!
​
To create the game, concepts such as loops and conditionals were used to manage the repetitive commands. Functions and data structures like lists and dictionaries were used to modularise the codes. The program is also robust and can deal with user errors using exception handling and string methods.
Why I created this game
I created this game through Python because I wanted to combine my interests in Science and coding, to let others have fun learning about Science concepts through playing this interactive game!
​
When I was in Primary 1, my form teacher knew it would benefit us to learn about Science even though it wasn’t a subject at P1. Throughout our school year, she would conduct many interesting experiments with us, sparking my interest for Science and learning about our home and beyond! I will always be grateful to her for teaching us so passionately and growing my interest in Science at an early age. Science became my way of observing and figuring out the world around me, like solving a puzzle in real life. I love how you can use facts to come to a conclusion and find the answer to the mystery, which would fill me with an irreplaceable sense of satisfaction and fulfillment, and I wanted to let others experience it too. When I started learning coding at Coding Lab, I knew that this was a way to share my passion with others in both a fun and enjoyable way, so they could have fun and learn at the same time.
​
Hence, I came up with the idea of a Python RPG (role-playing game) to gamify learning about science interactions, after one of my Science Olympiad sessions where we used lemon juice and hand soap on pH strips to determine how acidic/alkaline the solution was. This chemical reaction inspired me to think about other scientific reactions in our daily life, which led me to create this game. As the project developed, I added features to provide a better, more interactive experience for the user besides it being a learning game, such as a shop selling items to give the players upgrades which they could buy with gold they won from battle challenges.
​
This RPG game allows players to conquer levels as they overcome enemies with Science knowledge of interactions, getting upgrades from the shop along the way. It incorporates many scientific and coding concepts to make it an enjoyable learning experience for the user, and I hope everyone enjoys playing it and learning about Science through this game as much as I enjoyed making it!