/*
 * Created on Apr 6, 2005
 *
 * TODO To change the template for this generated file go to
 * Window - Preferences - Java - Code Style - Code Templates
 */

/**
 * @author Nicole Sullivan
 *
 * TODO To change the template for this generated type comment go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
public class testPQDeCartes {
	static PaquetDeCartes leJeu;
	public static void main(String[] args) {
		// on recupere un jeu de 32 cartes battu (shuffled)
		leJeu = Arbitre.donneJeuBeloteBattu();
		Terminal.ecrireStringln("Cards Shuffled");
		//  affiche
		leJeu.affiche();
		Terminal.ecrireStringln("Points of an entire pack : " + Arbitre.comptePointsPaquet(leJeu, leJeu.lesCartes[0].couleur));
		//remove one card
		Carte c = leJeu.prendIeme(2);
		
		//affiche
		leJeu.affiche();
		
		//  create a new card and add it to the pack
		leJeu.ajoute(c);
		
		//affiche
		leJeu.affiche();
		
		Terminal.ecrireStringln("Card added: " + c.couleur.nom + c.figure.nom);
		
	}
}

