diff options
Diffstat (limited to 'client/printing_game_frames.c')
-rw-r--r-- | client/printing_game_frames.c | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/client/printing_game_frames.c b/client/printing_game_frames.c index 38f1a78..f75cec5 100644 --- a/client/printing_game_frames.c +++ b/client/printing_game_frames.c @@ -5,17 +5,17 @@ void pgf_first_player() { - printf("=======================================" - " You're the first player" - "Waiting for other players to connect..." + printf("=======================================\n" + " You're the first player\n" + "Waiting for other players to connect...\n" "=======================================\n"); } void pgf_confirmation_waiting(int total_players) { - printf("=======================================" - " To start game press <Enter> key " - "Connected players: %u/8 " + printf("=======================================\n" + " To start game press <Enter> key \n" + "Connected players: %u/8 \n" "=======================================\n", total_players); } @@ -24,7 +24,7 @@ void pgf_table(struct client *cl) struct card_stack_item *deck = NULL; int i; - for(i = 0; i < cl->cc.number_arr_idx; ++i) + for(i = 0; i <= cl->cc.number_arr_idx; ++i) /* printing who will move */ if(cl->state == attack_expectation || cl->state == defense_expectation) printf("<%c%u > ", cl->position_whose_turn-1 == i ? '*' : ' ', @@ -41,7 +41,8 @@ void pgf_table(struct client *cl) if(cl->state == defense_expectation) for(i = 0; i <= cl->cq.card_arr_idx; ++i) printf(" %s \\ -\n", cl->cq.card_arr[i]); - printf("\n\n"); + if(cl->cot.card_arr_idx != -1) + printf("\n\n"); /* ================ player's deck ================ */ deck = cl->deck; i = 0; @@ -70,6 +71,7 @@ void pgf_suggestions(struct client *cl) deck = deck->next; } printf(" > "); + fflush(stdout); } void pgf_select_idle_mode_message(enum client_states state) |