Thursday, September 08, 2005

Adding Java Applets to Your Chess Site

Based on my own experience and conversations with others, I think many chessplayers these days look at more games on their computers than they do with an actual set and board. That means that fewer and fewer players are likely to print out a game they find online or set up a board next to their computers to play along. There might be exceptional cases, such as the excellent annotated games at Chess Cafe, which I regularly print out to play over (though, frankly, I probably print out three for every one I actually find time to play through). But for the most part, speaking now to my fellow-chessbloggers and chess site managers, unless the games you post are in an electronically accessible format, they are unlikely to be played over by most visitors to your site. The most likely to be played over are those that appear with java applets for online viewing, since anyone who can click a link can look at them almost immediately.

So how do you get those java applets? Well, it's really not that hard. And if you already have a blog or website, you likely have all the basic knowledge needed to learn how, with one caveat: If you are a blogger who is reliant on Blogger or some other free blog-space, you will need to establish some web space for posting your java applet HTML files (since you cannot post files to Blogger). You can find some advice on that at my links pages on Web Publishing and Computer Chess. There are many inexpensive and free web servers out there. The one thing I'd emphasize, though, is "you get what you pay for": free web space is not always a good deal.

You will also need to pick a good java applet or pgn viewing program and master it with the aid of their help files. I don't intend to offer an exhaustive list of free java applet programs. That seems to have been done already at the wonderful long-standing page from En Passant on "Chess Diagrams and Java Applets" which lists the best freeware and shareware programs. Rather, I've tried to create a simplified listing for chess bloggers and those new to managing chess websites, along with some links to how these applets are actually being implemented.

Here is a selection:

1) Palview http://www.enpassant.dk/chess/palview/index.htm I have found this to be a wonderfully robust FREE program for creating java applets. I have also used it extensively at the Kenilworth Chess Club site (see here, here, here, and here for example) and at my Urusov Gambit website (see here and here). It is an extremely versatile program as you can see from their Demo Pages and Palview Links. I cannot speak highly enough of this excellent program. Be sure to also get the indispensible Palmate program which makes using Palview fast and easy.

2) ChessBase 7+ http://www.chessbase.com/shop/ There are so many free java applet chess programs out there that I think you'd be crazy to buy ChessBase9 just to make webpages. But if you already have the program or you have other good reasons to buy it (and there are many), then it will make your life easier to some extent. It is the method of choice for The Chess Mind, ChessBase (of course), and many others on the web. I especially like the way the Spanish-language Inforchess site uses it. There is a lot of help that comes with the program and you can find more online from Mig Greengard and Steve Lopez.

3) PGN2Web http://pgn2web.sourceforge.net/ This program is free and comes with lots of help files. It is the progam that DreadPirateJosh uses to post his games. It looks easy to use and appears to deal very well with annotations.

4) LT-PGN-Viewer http://www.lutanho.net/pgn/pgnviewer.html The preferred method of Der Alter Goniff, who has also written a useful piece titled "The Quick and Dirty Method of Using LT-PGN-Viewer." Der Alter Goniff posts his games at a website but then embeds them into his blog using an I-frame. The idea is attractive since it does present your game to your readers for immediate viewing (zero-clicks away). However, this method introduces several problems of usability. For one, the page will be very slow and quirky since Blogger itself has a slow server, but on top of that those people who access your page may be using a Mozilla-based browser on which I-frames do not work or they may have a slow connection. So I would not recommend imitating Der Alter Goniff on the way he uses it. But the program itself looks good.

5) ChessViewer 2.1 by Andrew Gove at the Internet Chess Club http://www.chessclub.com/chessviewer/ Preferred viewer of J'adoube. It's not clear to me whether or not the program can show annotations but it seems perfectly usable for posting games.

6) Misty Beach PGN Viewer http://www.mistybeach.com/products/PGNViewer/index.html One of the first PGN viewers and still quite usable for those with either the knowledge or the time to master it. Its chief advantage is that it is small and therefore quite usable for readers with only dialup access. A good example of this classic PGN vewer in action is available at Sarah's chess blog featuring Morphy's Games. Its chief drawback is that it is no longer in active development and therefore could easily develop compatability problems that go unrepaired, and its help files require some computer knowledge to use.

Let me know what you would add to this list-or if you want to recommend any of these to readers.