From 880b8be2c28d761505b2eecc1386919d5add6f2f Mon Sep 17 00:00:00 2001 From: scratko Date: Wed, 14 Aug 2024 02:35:56 +0300 Subject: Global fixes v1.0 Defense hint now only takes into account unbeaten cards. The client accounts for sticky data in one packet via TCP. Changed delimiter when sending data related to cards on the table and the queue (from '0' to '='). Accepting cards from a client (verification_client_input.c) is heavily patched. Cards are taken from the stack at the hint's prompt. Added pop_stack(). The trump card is retrieved from the end of the array. Changed the check of the defender's ability to beat all cards. --- client/client.h | 1 + 1 file changed, 1 insertion(+) (limited to 'client/client.h') diff --git a/client/client.h b/client/client.h index f73cdce..9bdd8cc 100644 --- a/client/client.h +++ b/client/client.h @@ -66,6 +66,7 @@ struct client { int position_whose_turn; int display_new_frame; int all_input_cards_accepted; + int data_left_in_buffer; }; #endif -- cgit v1.2.3