Sha256: 0d056df5401c22208cb982dd97e5384b0fe615df306eacc09930ed80426abd80
Contents?: true
Size: 981 Bytes
Versions: 3
Compression:
Stored size: 981 Bytes
Contents
= Chess A fast Ruby library to play chess with Ruby. This library is quite fast because rappresent the game situations with bitboards. In addition, the move generator is written in C as a Ruby extension. == Installation gem install chess == Usage require 'chess' g = Chess::Game.new while (!g.over?) begin print "Give me a #{g.active_player} move: " input = gets.chop break if input == 'quit' g << input puts g.board puts g.moves.last rescue Chess::IllegalMoveError => e puts 'Illegal move!' end end puts g.status Documentation is available {here}[http://pioz.github.com/chess]. == Questions or problems? If you have any issues please add an {issue on GitHub}[https://github.com/pioz/chess/issues] or fork the project and send a pull request. == Copyright Copyright (c) 2012 {Enrico Pilotto (@pioz)}[https://github.com/pioz]. See {LICENSE}[https://github.com/pioz/chess/blob/master/LICENSE] for details.
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
chess-0.0.3 | README.rdoc |
chess-0.0.2 | README.rdoc |
chess-0.0.1 | README.rdoc |