place_piece(b, W_KING, ANY_SQUARE, 8);
for (i = 0; i < 8; i++) {
if (b[i][0] != W_KING) {
- b[i][0] = (random() % 4) + 2;
+ b[i][0] = (random() % 4) + 2; if(b[i][0] == 5) b[i][0] += 3;
}
}
/* Black mirrors White */
place_piece(b, W_KING, ANY_SQUARE, 8);
for (i = 0; i < 8; i++) {
if (b[i][0] != W_KING) {
- b[i][0] = (random() % 4) + 2;
+ b[i][0] = (random() % 4) + 2; if(b[i][0] == 5) b[i][0] += 3;
}
}
/* Black has same set of pieces, but randomly permuted, except that Black