Home > Brasee.com Games preview - Ajax chess

Brasee.com Games preview - Ajax chess
Posted by Kaleb Brasee on Monday, May 25th, 2009 at 09:38 PM
Brasee.com Games Ajax chess For the past month I've been working on implementing a chess rules engine in Java. I started it just to improve my TDD skills, but when I finished the engine it only seemed logical to create a way to actually use the code to do something a little more fun than running unit tests.

So I decided to write an Ajax interface for the chess engine. Today I finished the first iteration (human vs. human on the same computer), and it is available as a preview at:

Ajax chess on Brasee.com Games

The source code is also available at http://code.google.com/p/java-chess-web.

I still don't have the web app checked in yet, I'll work on getting that up in the next week or two when I get it cleaned up and generalized.

For the next iteration, I'm planning on adding a basic lobby system and making this game playable between people over the web. Yeah I know, big goals for a single iteration in a spare time project, LOL. After that, if I'm feeling really adventurous, I might try to implement some basic chess artificial intelligance. I'll no doubt have to brush up on my min-maxing and alpha-beta pruning, and figure out the best way to implement it in Java.
3 comments for "Brasee.com Games preview - Ajax chess":

  1. Re: Brasee.com Games preview - Ajax chess
    Posted by Barry on Thursday, May 28th, 2009 at 05:07 AM
    Hey - always interesting to see someone working on the same sort of thing. You might be interested to see my Java chess w/Ajax front end at http://calculonxweb.appspot.com . The source is also on Google code under project names calculonx (engine) and calculonxweb (frontend).
  2. Re: Brasee.com Games preview - Ajax chess
    Posted by Kaleb on Thursday, May 28th, 2009 at 12:11 PM
    Thanks Barry, I hadn't seen your implementation before, I will take a look at it. I didn't even really expect to take mine to the point where it was playable. I just ended up spending enough time on the chess rules code that I felt it would be a waste of time if I didn't make a UI for it, LOL. I had wanted to try out simple Ajax app so it was a good opportunity to do that. I'll have to take a look at your code.
  3. Re: Brasee.com Games preview - Ajax chess
    Posted by Kaleb on Thursday, May 28th, 2009 at 12:26 PM
    Sweet, very nice AI in your app. I'm going to take the multiplayer route first (making it player vs. player possible over the web), but I might give the AI a shot someday. My current object model and logic would no doubt cause crappy performance, if I wanted any kind of decent AI I assume I'd have quite a bit of redesign to do.

Sign in