Module: RubyKnight

Defined in:
lib/rubyknight.rb,
lib/rubyknight/evaluator.rb

Overview

rubyknight.rb - Ruby Chess Library

Example

board = RubyKnight::Board.new

puts board.to_s print “Enter move: ” $stdin.each do |move| move.strip! begin board.cnotation_move move rescue RubyKnight::IllegalMoveException print “Enter a real move! #$!$!.to_sn” end puts board.to_s print “Enter move: ” end

Defined Under Namespace

Classes: Board, BoardEvaluator, IllegalMoveException