From 648d49910525abfbdd4055cef179ca17131cd1f9 Mon Sep 17 00:00:00 2001 From: Reiner Herrmann Date: Tue, 4 Jan 2011 02:16:06 +0100 Subject: added functions for calculating card/stackpoints --- src/common.h | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 src/common.h (limited to 'src/common.h') diff --git a/src/common.h b/src/common.h new file mode 100644 index 0000000..13fcf7c --- /dev/null +++ b/src/common.h @@ -0,0 +1,10 @@ +#define MAX_CARDSTACK_SIZE 5 +#define MAX_CARDHAND_SIZE 10 + +typedef char card; +typedef card cardstack[5]; +typedef card hand[10]; + +int cardpoints(card c); +int stackpoints(cardstack s); + -- cgit v1.2.3