class LxChess::PGN
- LxChess::PGN
- Reference
- Object
Defined in:
lx_chess/pgn.crConstant Summary
-
COMMENT_REGEX =
/\s*\{[^\}]+\}\s*/i
-
SAN_REGEX =
/\ ([A-Z])? # piece ([a-z])?(\d)? # disambiguation x? # takes ([a-z]\d|O-O(?:-O)?) # destination (\=\s*[A-Z])? # promotion ([\+\#])? # check\/checkmate (\s*e\.?\s*p\.?)? # en passant /x
-
TAG_REGEX =
/\[(?<key>[a-z]+)\s+(?<value>[^\]]+)\]/i
-
TURN_REGEX =
/\d+\.+\s*/
-
VARIATION_REGEX =
/\s*\([^\)]+\)\s*/i
Constructors
Instance Method Summary
- #changes : Array(Array(LxChess::Change))
- #changes=(changes : Array(Array(LxChess::Change)))
- #game : Game
- #game=(game : Game)
- #history : Array(LxChess::Notation)
- #history=(history : Array(LxChess::Notation))
- #strings
- #tags : Hash(String, String)
- #tags=(tags : Hash(String, String))
-
#to_s
Returns a nicely readable and concise string representation of this object, typically intended for users.
Constructor Detail
Instance Method Detail
def to_s
#
Description copied from class Object
Returns a nicely readable and concise string representation of this object, typically intended for users.
This method should usually not be overridden. It delegates to
#to_s(IO)
which can be overridden for custom implementations.
Also see #inspect
.