DEV Community

Cover image for Baby's first text-based horror game
Jemal Young
Jemal Young

Posted on

6

Baby's first text-based horror game

Gradient Descent is my final project for Codecademy's CS101 course; the assignment was to "build a basic terminal program of your choice", so I made a text-based horror game in the style of Choose Your Own Adventure.

This game is unfinished, and I hope to keep working on it as time allows.

Gradient Descent gameplay

The code has a lot of redundancy, especially for pacing and text effects. In hindsight, I could have created a few functions and just called those. I'd like to make that improvement. I'd also like to make the scenarios (decision_1(), decision_2()...) modular i.e. easily callable from one another, whereas right now the final-decision scenario is the only modular one. The game would ideally be a Möbius strip of flexible decision-making horror, until the player reaches a terminal state.

Link to the code on GitHub

This project taught me how easy it is to become fascinated by the siren song of low-hanging marginal improvements. I want to keep working on this damned script, there are so many problems with it and it could be so much better.

Hostinger image

Get n8n VPS hosting 3x cheaper than a cloud solution

Get fast, easy, secure n8n VPS hosting from $4.99/mo at Hostinger. Automate any workflow using a pre-installed n8n application and no-code customization.

Start now

Top comments (0)

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

👋 Kindness is contagious

Explore a trove of insights in this engaging article, celebrated within our welcoming DEV Community. Developers from every background are invited to join and enhance our shared wisdom.

A genuine "thank you" can truly uplift someone’s day. Feel free to express your gratitude in the comments below!

On DEV, our collective exchange of knowledge lightens the road ahead and strengthens our community bonds. Found something valuable here? A small thank you to the author can make a big difference.

Okay