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

  • Bobby_DROP_TABLES [he/him]
    ·
    edit-2
    2 years ago

    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.