Dave LeCompte (really) (tsmaster) wrote,
Dave LeCompte (really)

A strange game. The only winning move is not to play. How about a nice game of chess?

Really, you don't need to have watched the proto-hacker movies of 1983 to know there's not much fun to be had with this game. Nevertheless, I spent much of the weekend putting together a playable game of Tic Tac Toe. There are 3 (soon to be 4) different kinds of AI, one which you can beat, and two which should play you to a draw, unless there are bugs in my code.

If there is an interesting thing about this game, and I'm not saying there is, it's that I've divided the AI out from the game logic in such a way that I can reuse the game structure pretty easily, including the AI code in its entirety, and go forward to less trivial games. Some games I'm itching to implement:

  • Dots and Boxes
  • Checkers
  • Reversi (aka "Othello", which is a racy reference that I didn't get when I first learned to play)
  • various games in the Mancala family (Kalah is the one most Americans are familiar with, but there are more challenging games like Oware that wouldn't be hard to do at the same time)

... and so on.

And, if I give in to the pedagogical itch, I'll clean up my code and have it around as a reference for up-and-coming folks who want to do a small game in their spare time.

If, for some odd reason, you want to play this, it's here. Win32 EXE only right now - no source, no Mac, no Linux.

  • Living is Easy (With Eyes Closed)

    This is really primarily for Cassie, but I rarely post here, so it's also an exercise in "how does LJ work again? Or how does it work today?".…

  • No mudslides for me, thank you.

    Hey, is this thing on? I was just sending email to a mailing list (nothing exciting, don't feel insulted if you're not on it) that was thinking…

  • Trivial

    So, this past weekend, a bunch of my friends / acquaintences / teammates got together and competed in a local trivia competition. There are a few…

  • Post a new comment


    Comments allowed for friends only

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded