Sunday, January 27, 2008

Modern Dots Release Candidate

Also for release some time next month, the release candidate for Modern Dots has been posted to the subversion repository hosted at ultimateretroproject.dev.java.net so anybody who knows how to compile java and download from a repository can play with it right now. Next month is only a few days away so it's not like its going to be that long of a wait.

There is not that much to say about the code, though I do like the way I implemented the AI into the modern version. First, the AI can be toggled while the game is playing. Second, the actual AI logic is placing in my timing routine that gets called roughly every tenth of a second. The timer checks to see if the current player is controlled by the computer. If so, it makes a move. The nice thing about this is that if you make both players AI controlled, then you can actually watch the game as it is played. Likewise, when you don't pay enough attention and give the computer a chain of squares, you can see the chain being filled in.

No comments: