Module: Chess

Defined in:
lib/chess/version.rb,
lib/chess/pgn.rb,
lib/chess/game.rb,
lib/chess/gnuchess.rb,
lib/chess/exceptions.rb,
lib/chess/utf8_notation.rb,
ext/chess.c

Overview

The Chess library module.

Defined Under Namespace

Modules: Gnuchess, UTF8Notation Classes: BadNotationError, Board, CGame, Game, IllegalMoveError, InvalidFenFormatError, InvalidPgnFormatError, Pgn

Constant Summary collapse

MOVE_REGEXP =
/^([RNBQK])?([a-h]|[1-8]|[a-h][1-8])?(?:x)?([a-h][1-8])(?:=?([RrNnBbQq]))?(?:ep)?(?:\+|\#)?$/.freeze
SHORT_CASTLING_REGEXP =
/^([0O])-([0O])([\+#])?$/.freeze
LONG_CASTLING_REGEXP =
/^([0O])-([0O])-([0O])([\+#])?$/.freeze
VERSION =

The library version.

'0.3.1'.freeze