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)
Sourcefrom(m)
Sourceis_capture?(m)
Sourceis_capture_or_promotion?(m)
Sourceis_castling?(m)
Sourceis_promotion?(m)
Sourcemoved_piece(m)
Sourcenew_move(from : Number, to : Number, piece_type, captured_type, move_type) : Int32
Sourcenew_move(from : Square, to : Square, piece_type, captured_type, move_type) : Int32
Sourcenew_type(capture, promotion, s1, s0)
Sourcepromoted_piece(m)
Sourcespecial(m)
Sourceto(m)
Sourcetype(m)
Source