src/rules/bishop.c

changeset 18
6008840b859e
parent 17
2aed5418e142
equal deleted inserted replaced
17:2aed5418e142 18:6008840b859e
107 amb = TRUE; 107 amb = TRUE;
108 move->fromrow = row; 108 move->fromrow = row;
109 move->fromfile = file; 109 move->fromfile = file;
110 } 110 }
111 file = move->tofile - d; 111 file = move->tofile - d;
112 if (isfile(file) && board[row][file] == move->piece) { 112 if (isidx(file) && board[row][file] == move->piece) {
113 if (amb) { 113 if (amb) {
114 return AMBIGUOUS_MOVE; 114 return AMBIGUOUS_MOVE;
115 } 115 }
116 amb = TRUE; 116 amb = TRUE;
117 move->fromrow = row; 117 move->fromrow = row;

mercurial