module Chess::Move
Extended Modules
Defined in:
chess/move.crConstant Summary
-
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 Method Summary
- #captured_piece(m)
- #from(m)
- #is_capture?(m)
- #is_capture_or_promotion?(m)
- #is_castling?(m)
-
#is_normal?(m)
Either quiete move or capture
- #is_promotion?(m)
- #moved_piece(m)
- #new_move(from : Number, to : Number, piece_type, captured_type, move_type) : Int32
- #new_move(from : Square, to : Square, piece_type, captured_type, move_type) : Int32
- #new_type(capture, promotion, s1, s0)
- #promoted_piece(m)
- #special(m)
- #to(m)
- #type(m)
Instance Method Detail
def new_move(from : Number, to : Number, piece_type, captured_type, move_type) : Int32
#