Skip to content

Commit

Permalink
Fixed formatting warning
Browse files Browse the repository at this point in the history
  • Loading branch information
fredericojordan committed Jul 6, 2017
1 parent 3e2f113 commit f40bda2
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/fast-chess.c
Original file line number Diff line number Diff line change
Expand Up @@ -1258,10 +1258,10 @@ BOOL canCastleKingside(Position * position, char color) {

case WHITE:
if ( (position->castlingRights&CASTLE_KINGSIDE_WHITE) &&
(position->board[str2index("e1")] == WHITE|KING) &&
(position->board[str2index("e1")] == (WHITE|KING)) &&
(position->board[str2index("f1")] == EMPTY) &&
(position->board[str2index("g1")] == EMPTY) &&
(position->board[str2index("h1")] == WHITE|ROOK) &&
(position->board[str2index("h1")] == (WHITE|ROOK)) &&
(!isAttacked(str2bb("e1"), position->board, opponent(color))) &&
(!isAttacked(str2bb("f1"), position->board, opponent(color))) &&
(!isAttacked(str2bb("g1"), position->board, opponent(color))) )
Expand All @@ -1271,10 +1271,10 @@ BOOL canCastleKingside(Position * position, char color) {

case BLACK:
if ( (position->castlingRights&CASTLE_KINGSIDE_BLACK) &&
(position->board[str2index("e8")] == BLACK|KING) &&
(position->board[str2index("e8")] == (BLACK|KING)) &&
(position->board[str2index("f8")] == EMPTY) &&
(position->board[str2index("g8")] == EMPTY) &&
(position->board[str2index("h8")] == BLACK|ROOK) &&
(position->board[str2index("h8")] == (BLACK|ROOK)) &&
(!isAttacked(str2bb("e8"), position->board, opponent(color))) &&
(!isAttacked(str2bb("f8"), position->board, opponent(color))) &&
(!isAttacked(str2bb("g8"), position->board, opponent(color))) )
Expand All @@ -1291,11 +1291,11 @@ BOOL canCastleQueenside(Position * position, char color) {

case WHITE:
if ( (position->castlingRights&CASTLE_QUEENSIDE_WHITE) &&
(position->board[str2index("a1")] == WHITE|ROOK) &&
(position->board[str2index("a1")] == (WHITE|ROOK)) &&
(position->board[str2index("b1")] == EMPTY) &&
(position->board[str2index("c1")] == EMPTY) &&
(position->board[str2index("d1")] == EMPTY) &&
(position->board[str2index("e1")] == WHITE|KING) &&
(position->board[str2index("e1")] == (WHITE|KING)) &&
(!isAttacked(str2bb("c1"), position->board, opponent(color))) &&
(!isAttacked(str2bb("d1"), position->board, opponent(color))) &&
(!isAttacked(str2bb("e1"), position->board, opponent(color))) )
Expand All @@ -1305,11 +1305,11 @@ BOOL canCastleQueenside(Position * position, char color) {

case BLACK:
if ( (position->castlingRights&CASTLE_QUEENSIDE_BLACK) &&
(position->board[str2index("a8")] == BLACK|ROOK) &&
(position->board[str2index("a8")] == (BLACK|ROOK)) &&
(position->board[str2index("b8")] == EMPTY) &&
(position->board[str2index("c8")] == EMPTY) &&
(position->board[str2index("d8")] == EMPTY) &&
(position->board[str2index("e8")] == BLACK|KING) &&
(position->board[str2index("e8")] == (BLACK|KING)) &&
(!isAttacked(str2bb("c8"), position->board, opponent(color))) &&
(!isAttacked(str2bb("d8"), position->board, opponent(color))) &&
(!isAttacked(str2bb("e8"), position->board, opponent(color))) )
Expand Down

0 comments on commit f40bda2

Please sign in to comment.