@@ -401,7 +401,7 @@ bool ChessBoard::can_move(int from, int to, piece_type promotion) const {
401401// - returns a list of all squares where the king may move
402402// -------------------------------------------------------------------
403403move_list ChessBoard::mobility_king (int from) const {
404- move m;
404+ chessmove m;
405405 move_list ml;
406406 m.promotion =Empty;
407407 m.from =from;
@@ -457,7 +457,7 @@ move_list ChessBoard::mobility_king(int from) const {
457457// - returns a list of all squares where the knight may move
458458// -------------------------------------------------------------------
459459move_list ChessBoard::mobility_knight (int from) const {
460- move m;
460+ chessmove m;
461461 move_list ml;
462462 m.promotion =Empty;
463463 m.from =from;
@@ -482,7 +482,7 @@ move_list ChessBoard::mobility_knight(int from) const {
482482// - returns a list of all squares where the pawn may move
483483// -------------------------------------------------------------------
484484move_list ChessBoard::mobility_pawn (int from) const {
485- move m;
485+ chessmove m;
486486 move_list ml;
487487 m.promotion =Empty;
488488 m.from =from;
@@ -540,7 +540,7 @@ move_list ChessBoard::mobility_pawn(int from) const {
540540// - returns a list of all squares where the rook may move
541541// -------------------------------------------------------------------
542542move_list ChessBoard::mobility_rook (int from) const {
543- move m;
543+ chessmove m;
544544 move_list ml;
545545 m.promotion =Empty;
546546 m.from =from;
@@ -568,7 +568,7 @@ move_list ChessBoard::mobility_rook(int from) const {
568568// - returns a list of all squares where the bishop may move
569569// -------------------------------------------------------------------
570570move_list ChessBoard::mobility_bishop (int from) const {
571- move m;
571+ chessmove m;
572572 move_list ml;
573573 m.promotion =Empty;
574574 m.from =from;
@@ -681,7 +681,7 @@ bool ChessBoard::is_attacked(bool by_white, int to) const {
681681// -------------------------------------------------------------------
682682// Determine whether the given move puts one's own king in check
683683// -------------------------------------------------------------------
684- bool ChessBoard::causes_check (const move & m) const {
684+ bool ChessBoard::causes_check (const chessmove & m) const {
685685 bool w_turn=is_white (square[m.from ]);
686686 ChessBoard c=*this ;
687687 piece_type promotion=m.promotion ;
0 commit comments