I am so shameful.
Introduction
Hello there, coders! First of all, I'd like to say sorry for my delay. I've been figuring out the google search console thing, and all my time's been taken because of that.
Anyway, today, I'll share you all my experience making a CYOA game in Python.
In short, lots of conditionals, AI, and bugs.
Ignorance
I started working on it, and I felt amazing.
Sure, there were a few bugs, but nothing too frustrating to get rid of.
I finished coding the entire first 'Lobby Part' in just a day!
Then, my laziness started to pop up again.
This was really starting to be a problem.
Couple that together with the fact that I was just starting to figure out Google Search Console, was time-consuming.
This was when things started to go downhill.
Debugging
I came back to this, TWO WEEKS LATER!!!
That's really concerning.
Anyway, I got back to work on playtesting, and started noticing huge problems.
Firstly, I was limiting the player's choice to only 3, but the player could choose infinitely!
Secondly, the actual story. The thing that was the point of the game, WASN'T SHOWING UP! This problem was probably also because of the infinite choices thing.
Third, the player could choose a choice multiple times.
After an hour of working, I gave up.
I couldn't think of a solution, so I turned towards ChatGPT.
It was a bit frustrating since it thought I was talking about different problems.
Slowly but surely, I got things debugged.
It's a shame I had to rely on AI.
Debugging Pt. 2
I really didn't want to rely on AI, but I guess I will have to later.
Anyways, did you think the bugs were gone? Nuh uh.
There were more problems.
There was one where PyCharm kept saying that this one line of code was unreachable.
The player could spam enter and not make any choices at all.
It was really annoying.
Thankfully, things turned out alright!
The Code
So here's the code!
Code's going to get a lot longer, so I don't know how to compress it in blogger.
That's a problem for future Stewie to handle though!
Can anyone of y'all help me out with the Google Search Console? Really messing me up.
and with that,
signing off,
Stewie
Comments
Post a Comment