+ nb_white = count_pawn_type(pawns, white);
+ nb_black = count_pawn_type(pawns, black);
+
+ mvprintw(center_y, center_x - 42/2 - strlen(score_white_msg) - 2, score_white_msg, nb_white);
+ mvprintw(center_y, center_x + 42/2 + 2, score_black_msg, nb_black);
+
+ int y;
+ char x;
+ bool input_ok = false;
+ do {
+ y = 0;
+ x = "";
+ 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) {
+ input_ok = true;
+ }
+ } while (!input_ok);
+ pawns[board_size][board_size] = set_pawn(y, map_col_letter_to_int(x), player, pawns);
+ struct shots_list shot_current;
+ shot_current.pawn_array_member = &pawns[y-1][x-1];
+ //list_add(shot_current.list, shots_list.list);
+
+ round++; /* increment the round count */
+
+ refresh();
+
+ /* here are all the end of the game conditions */
+ //if (is_board_full(pawns) || round == 60) {
+ if (is_board_full(pawns)) {
+ int winner = eval_winner(nb_white, nb_black);
+ if (winner != 0) {
+ mvprintw(center_y - 26/2 - 2, (center_x - strlen(winner_msg)/2), winner_msg, winner);
+ } else {
+ mvprintw(center_y - 26/2 - 2, (center_x - strlen(draw_msg)/2), draw_msg);
+ }
+ /* print and implement restart possibility */