Art is Art and Water is Water

February 28, 2010

February Game: PyCross

Filed under: Arduino, Month Games — foone @ 10:05 pm

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)
It's naughts and crosses

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:

  1. Can I win this turn? If so, make that move.
  2. Could the player win next turn? If so, block them.
  3. Can I start making a line that’s not yet blocked? If so, start on that.
  4. 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!


1 Comment »

  1. […] PyCross […]

    Pingback by Game Inventory « Art is Art and Water is Water — November 1, 2010 @ 8:47 am

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Blog at

%d bloggers like this: