module

Chess::Move

Constants

BishopCapturePromotion = 7
BishopPromotion = 6
BlackKingSideCastle = new_move(Square::E8, Square::G8, Piece::King, Piece::None, KingCastle)
BlackQueenSideCastle = new_move(Square::E8, Square::C8, Piece::King, Piece::None, QueenCastle)
Capture = 1
DoublePawnPush = 8
EPCapture = 9
KingCastle = 4
KnightCapturePromotion = 3
KnightPromotion = 2
NullMove = 0
QueenCapturePromotion = 15
QueenCastle = 12
QueenPromotion = 14
QuietMove = 0
RookCapturePromotion = 11
RookPromotion = 10
WhiteKingSideCastle = new_move(Square::E1, Square::G1, Piece::King, Piece::None, KingCastle)
WhiteQueenSideCastle = new_move(Square::E1, Square::C1, Piece::King, Piece::None, QueenCastle)

Instance methods

captured_piece(m)
Source
from(m)
Source
is_capture?(m)
Source
is_capture_or_promotion?(m)
Source
is_castling?(m)
Source
is_normal?(m)

Either quiete move or capture

Source
is_promotion?(m)
Source
moved_piece(m)
Source
new_move(from : Number, to : Number, piece_type, captured_type, move_type) : Int32
Source
new_move(from : Square, to : Square, piece_type, captured_type, move_type) : Int32
Source
new_type(capture, promotion, s1, s0)
Source
special(m)
Source
to(m)
Source
type(m)
Source