#include "common-types.h"

/* All of the functions here should be reasonably self-explanatory...
 * they take in arguments for each field, then create an object of
 * the type with those fields set correctly and return the object.
 */
cardT MakeCard(suitT suit, valueT value)
{
	cardT result;
	result.suit = suit;
	result.value = value;
	return result;
}

cellT MakeCell(cardT card, bool isFilled)
{
	cellT result;
	result.card = card;
	result.isFilled = isFilled;
	return result;
}

placeT MakePlace(locationT type, int index)
{
	placeT result;
	result.type = type;
	result.index = index;
	return result;
}
