I stressed so much the past few days and straight up thought I broke the win condition functions yesterday. Anyway, I pulled it together today and it actually works. It's the first time I thought "I want to make this" and saw it to completion
For reference it's nothing too intense. It's a connect four game using the console, but it checks wins every direction without issue and prints the appropriate player object's name during a win (and ties after the 42nd turn)
I really thought I was a failure yesterday, but I'm proud of myself for pushing through today. So I'm sharing my relief at this going right
The code is a mess, I'm sure, but I'll get back to learning new things for now and revisit this in a few weeks or so
The code is a mess, I’m sure, but I’ll get back to learning new things for now and revisit this in a few weeks or so
The important part at first is to get it to run. Elegant code comes with time. Just need to get past the part where you find the coding part daunting, usually clean code comes with a bit of thinjing through the problem you're tackling and the design of the program. Which is really a separate skillset that you need to already be decently confident in coding to start building. Best of luck!
Congratulations!
:party-blob:
You should be proud of yourself.
That's really really cool.
What libraries were you using for the graphics?
the code is a mess
I'm gearing up to start a PhD-track program in computer science and I routinely write disgusting, heinous spaghetti code. You got shit working and that's the important thing. If you have the time, going through and refactoring it into something you're happy with would make for a great second project. That would also give you a better feel for how software design works professionally.
Good job. Making stuff like that is definitely the best way to learn. Plus it's the best feeling when you have an idea and can immediately know how to make it real.