- char* prompt_msg = "Prochain pion ? - ligne colonne (chiffre lettre):";
- prompt_values(stdscr, center_y + 26/2 + 1, center_x - strlen(prompt_msg)/2, prompt_msg, &y, &x);
- /* FIXME: separate the tests to permit to print explicit error messages */
- if (((y > 0 && y < board_size + 1) || \
- (map_col_letter_to_int(x) > 0 && map_col_letter_to_int(x) < board_size + 1)) \
- && is_box_type(y, x, pawns, empty)) {
+ char* prompt_msg = "Prochain pion ? (ligne colonne - chiffre lettre):";
+ int prmt_rt = prompt_values(stdscr, center_y + 26/2 + 1, center_x - strlen(prompt_msg)/2, prompt_msg, &y, &x);
+ if (is_valid_input(y, map_col_letter_to_int(x), pawns) && prmt_rt == 1) {