summaryrefslogtreecommitdiff
path: root/src/cardstack.c
blob: 66cede98aafe96f2d9ad6fc24596b01a8a0d4d3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include "cardstack.h"

uint32_t cardstack_get_points(const cardstack cs)
{
	uint32_t points = 0;

	for(uint8_t i = 0; i < MAX_CARDSTACK_SIZE; i++)
	{
		if(cs[i] > 0)
			points += card_get_points(cs[i]);
	}

	return points;
}