import java.util.ArrayList;
public class LotteryCard
{
	private ArrayList<LotteryGame> card;
	
	public LotteryCard(int picksPerGame, int maximumPick,
	                   int numberQuickPickGames, int numberSelfPickGames)
	{
		this.card = new ArrayList<LotteryGame>();
		
		for (int count = 1; count <= numberQuickPickGames; count++)
			this.card.add( new LotteryGame(picksPerGame, maximumPick, true) );
			
		for (int count = 1; count <= numberSelfPickGames; count++)
			this.card.add( new LotteryGame(picksPerGame, maximumPick, false) );
	}
	
	public int[] check(LotteryGame picks)
	{
		int[] matches = new int[this.card.size()];
		for (int i = 0; i < this.card.size(); i++)
			matches[i] = this.card.get(i).check(picks);
		return matches;
	}
	
	public String toString()
	{
		String image = "";
		for (LotteryGame game : this.card)
			image += "\nPlayed: " + game;
		return image;
	}

}	