Web Chess

2008

This is a human-vs-computer chess playing program that I wrote in Ruby as a final project for class freshman year at college. The computer looks a step ahead and evaluates the best move. For class, the program was written to run in IRB drawing the board in ASCII. More recently, I integrated it into my Rails site. I added graphics and visual cues, and made use of some AJAX.

There are a few flaws. As far as gameplay goes, the computer doesn't know when the game is over, and also "castling" is not supported. And some of the visual cues with the drag and drop aren't great. It's even worse in certain browsers.

Play it here: Web Chess.

If you want the IRB version to run in your terminal, here it is: IRB_Chess-IPearce.zip.

Webchess_snapshot_thumb Irb_chess_snaphot_thumb