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

  • hexaflexagonbear [he/him]
    ·
    2 years ago

    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!