| 693 candidates[ccount].fromrow = r; |
693 candidates[ccount].fromrow = r; |
| 694 candidates[ccount].fromfile = f; |
694 candidates[ccount].fromfile = f; |
| 695 candidates[ccount].torow = row; |
695 candidates[ccount].torow = row; |
| 696 candidates[ccount].tofile = file; |
696 candidates[ccount].tofile = file; |
| 697 candidates[ccount].capture = true; |
697 candidates[ccount].capture = true; |
| |
698 if (piece_type(p) == PAWN && (row == 0 || row == 7)) { |
| |
699 /* the exact piece for promotion does not matter */ |
| |
700 candidates[ccount].promotion = mkpiece(QUEEN, color); |
| |
701 } |
| 698 ccount++; |
702 ccount++; |
| 699 } |
703 } |
| 700 } |
704 } |
| 701 } |
705 } |
| 702 |
706 |