From 831f9f01fbe4088eb6bd378c0e417d9996b676fd Mon Sep 17 00:00:00 2001 From: scratko Date: Fri, 30 Aug 2024 12:46:56 +0300 Subject: Final version v2.0 Added windows client. SIGPIPE signal was being sent to the server when the client was disconnected. Now there is handling of this signal. Added a delay when displaying some informational messages. --- linux_client/card_handling.h | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 linux_client/card_handling.h (limited to 'linux_client/card_handling.h') diff --git a/linux_client/card_handling.h b/linux_client/card_handling.h new file mode 100644 index 0000000..8dcb072 --- /dev/null +++ b/linux_client/card_handling.h @@ -0,0 +1,9 @@ +#ifndef CARD_HANDLING_H_SENTRY +#define CARD_HANDLING_H_SENTRY + +int convert_rank_to_int(const char *card); +int is_card_beaten(const char *attack_card, const char *defend_card, + const char *trump_suit); +int check_matched_ranks(const char *attack_card, const char *not_defender_card); + +#endif -- cgit v1.2.3