Pixelpusher
Nowadays, you can buy many very strong computer programs for your PC. The
newest version of Rebel is challenging grandmaster and nearly world-champion
Anand. Programs have ELO-ratings, much higher than most of us can even dream
to get close to. The Pixelpusher program takes a step in the other direction: it
is might well the weakest playing chess program in the world! Pixelpusher namely
just makes a random legal move. If you are again beaten up badly by your
commercial chess playing program, try Pixelpusher!
Well, this is just my version 0.05 of a chess playing applet. Related applets
play chess variants, and they play it just as bad. To tell the truth, I
actually hope to make the program a little stronger, but have to work on that
yet.
Above, you see an applet in working. It plays a game of chess against you.
- To make a move, first (left) click on a piece, and then on
its destination square.
- To deselect a piece, (left) click again on the selected piece.
- To castle, (left) click on the king and then on its destination square.
The rook moves automatically with it.
- To go back to the original setup, double click with the right mouse button
on the board.
- To go back one move, click once with the right mouse button.
- The applet checks legality of the moves, including check. It follows the
chess moves precisely, except that it does not allow you to promote a piece to
something different from a queen, and:
- The applet does not determine stalemate or mate, draw by
repetition, or draw by the 50 moves rule.
Known bugs
- Promotion is automatically to a queen. Minor-promotion is not possible.
- The applet does not detect the end of a game.
- The computer just makes the first legal move he sees. It is actually
more difficult to lose from the computer than to win from it.
- The computer only plays black.
A challenge
Can you lose from this program?
The name
I named it Pixelpusher, after the name `woodpusher' for a chess player that
actually do not think when they play a game of chess.
Plans
Improve the play of the program: use position evaluation, alpha-beta
search, hash tables, endgame subroutines... It is not however my intention to
make this a very strong program.
Rewrite it from scratsch, to get code that is less of the mess this code is.
Make similar applets for chess variants.
Comments?
Comments are appreciated. Send email to hansb@cs.uu.nl.
Download the code
Download the code by clicking here.
Version
This is version 0.5. It uses the event model of JDK 1.1, which means it won't
work correctly with Netscape 3 or Internet Explorer 3. The first version was
made winter 1998 by Hans Bodlaender. The present version was made by Eli
Bachmupsky, based on Hans' code.
WWW page and applet made by Hans Bodlaender and Eli Bachmupsky.
WWW page created: May 11, 1998.