RGnuchess provides a Ruby interface to the program 'gnuchess', which is a fairly powerful chess engine.