Yes, the lamest month game since I made a Bejeweled clone, it’s PyCross! (Hey, now that I think about it, Bejeweled is kinda like one-player naughts-and-crosses/tic-tac-toe with gravity and colors)
This was actually February game attempt 2, my first one was electronics and a microcontroller, I was trying to make a Simon game. I ran into some hardware issues (fried one too many LEDs) and then ran out of time. So my second choice was a simple game, just so I can say I at least didn’t fail at making a February game 🙂
It’s pretty simple, and the most interesting part is the AI (if you can call it that). It is pretty simple:
- Can I win this turn? If so, make that move.
- Could the player win next turn? If so, block them.
- Can I start making a line that’s not yet blocked? If so, start on that.
- We’re screwed, so pick something randomly.
Good thing it’s still February here, because I just realized a bug in step 3 that could lead to an invalid move. Fixed!