break;
}
}
+ if (!found)
+ printf("# Invalid piece type '%c'\n", s[0]);
continue;
}
r = ROW_NUM(s[2]);
if ((c < 0) || (c >= NO_COLS) || (r < 0) || (r >= NO_ROWS)) {
+ printf("# Out-of-board position '%c%c'\n", s[1], s[2]);
continue;
}
break;
}
}
+
+ if (!found)
+ printf("# Invalid piece type '%c'\n", s[0]);
}
for (sq = 0; sq < NO_SQUARES; sq++)