diff options
| author | Mario Kilies <MarioKilies@GMX.net> | 2011-01-16 08:41:04 +0100 |
|---|---|---|
| committer | Mario Kilies <MarioKilies@GMX.net> | 2011-01-16 08:41:04 +0100 |
| commit | 4b9e56ebf47db8be740f4ff2a4b9fceb9f143055 (patch) | |
| tree | d6a31f6e068914a2ec1820da594c9d1c5ea2604e /src/card.c | |
| parent | fac5e3de0929c3abb73da552efbda6d641136588 (diff) | |
Refactored cardstack and tablestacks to card_stack_t and table_stacks_t, that both now are defined as structs rather than arrays. Inserted lots of assert() calls to functions that take pointers as arguments.
Diffstat (limited to 'src/card.c')
| -rw-r--r-- | src/card.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -4,6 +4,7 @@ uint32_t card_get_points(const card c) { assert(c > 0 && c <= 105); + if (55 == c) return 7; // Card 55 is worth of 7 points if (c % 11 == 0) return 5; // Cards that are multiples of 11 are worth 5 points if (c % 10 == 0) return 3; // ... 10 are worth 3 points |
