示例#1
0
  /** Jouer un pli. */
  private void jouerUnPli() {
    if (this.joueurCourant.getMain().getTailleMain() == 1) {
      this.table.nouveauPliCourant(true);
    } else {
      this.table.nouveauPliCourant(false);
    }
    Carte carteJouee = null;
    while (this.table.getPliCourant().size() < 4) {
      // Au premier tour avant de jouer quoi que ce soit, on analyse son jeu (juste pour voir les
      // annonces belote et re pour le moment)
      if (this.joueurCourant.getMain().getTailleMain() == 8) this.joueurCourant.analyserSonJeu();
      carteJouee = joueurCourant.jouerPli();

      this.table.jouerCarte(carteJouee, joueurCourant);
      joueurCourant = table.joueurSuivant(joueurCourant);
    }
    Terminal.ecrireStringln(
        "-------PLI FINI------\nJoueurMaitre : " + this.table.getPliCourant().getJoueurMaitre());
    this.table
        .getEquipeDuJoueur(this.table.getPliCourant().getJoueurMaitre())
        .ajouterPliRemporte(this.table.getPliCourant());
    joueurCourant = this.table.getPliCourant().getJoueurMaitre();
  }