Sha256: 25ead50249bb5a6c4c6e39cacbc3272c81517d5ba31875ab510e4bcf16d1628c
Contents?: true
Size: 1.02 KB
Versions: 4
Compression:
Stored size: 1.02 KB
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. ## Requirements * Ruby 1.9 or higher ## Installation gem install chess ## Usage require 'chess' g = Chess::Game.new until g.over? begin print "Give me a #{g.active_player} move: " input = gets.chop break if input == 'quit' g << input puts g 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) 2017 [Enrico Pilotto (@pioz)](https://github.com/pioz). See [LICENSE](https://github.com/pioz/chess/blob/master/LICENSE) for details.
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
chess-0.2.2 | README.md |
chess-0.2.1 | README.md |
chess-0.2.0 | README.md |
chess-0.1.4 | README.md |