@@ -388,21 +388,21 @@ const string Position::fen() const {
388388 int emptyCnt;
389389 std::ostringstream ss;
390390
391- for (Rank rank = RANK_8 ; rank >= RANK_1 ; --rank )
391+ for (Rank r = RANK_8 ; r >= RANK_1 ; --r )
392392 {
393- for (File file = FILE_A ; file <= FILE_H ; ++file )
393+ for (File f = FILE_A ; f <= FILE_H ; ++f )
394394 {
395- for (emptyCnt = 0 ; file <= FILE_H && empty (make_square (file, rank )); ++file )
395+ for (emptyCnt = 0 ; f <= FILE_H && empty (make_square (f, r )); ++f )
396396 ++emptyCnt;
397397
398398 if (emptyCnt)
399399 ss << emptyCnt;
400400
401- if (file <= FILE_H )
402- ss << PieceToChar[piece_on (make_square (file, rank ))];
401+ if (f <= FILE_H )
402+ ss << PieceToChar[piece_on (make_square (f, r ))];
403403 }
404404
405- if (rank > RANK_1 )
405+ if (r > RANK_1 )
406406 ss << ' /' ;
407407 }
408408
@@ -433,7 +433,7 @@ const string Position::fen() const {
433433// / Position::pretty() returns an ASCII representation of the position to be
434434// / printed to the standard output together with the move's san notation.
435435
436- const string Position::pretty (Move move ) const {
436+ const string Position::pretty (Move m ) const {
437437
438438 const string dottedLine = " \n +---+---+---+---+---+---+---+---+" ;
439439 const string twoRows = dottedLine + " \n | | . | | . | | . | | . |"
@@ -449,9 +449,9 @@ const string Position::pretty(Move move) const {
449449
450450 std::ostringstream ss;
451451
452- if (move )
452+ if (m )
453453 ss << " \n Move: " << (sideToMove == BLACK ? " .." : " " )
454- << move_to_san (*const_cast <Position*>(this ), move );
454+ << move_to_san (*const_cast <Position*>(this ), m );
455455
456456 ss << brd << " \n Fen: " << fen () << " \n Key: " << std::hex << std::uppercase
457457 << std::setfill (' 0' ) << std::setw (16 ) << st->key << " \n Checkers: " ;
@@ -1147,9 +1147,9 @@ void Position::flip() {
11471147 string f, token;
11481148 std::stringstream ss (fen ());
11491149
1150- for (Rank rank = RANK_8 ; rank >= RANK_1 ; --rank ) // Piece placement
1150+ for (Rank r = RANK_8 ; r >= RANK_1 ; --r ) // Piece placement
11511151 {
1152- std::getline (ss, token, rank > RANK_1 ? ' /' : ' ' );
1152+ std::getline (ss, token, r > RANK_1 ? ' /' : ' ' );
11531153 f.insert (0 , token + (f.empty () ? " " : " /" ));
11541154 }
11551155
0 commit comments