Exemplo n.º 1
0
 public string AjouterJoueur(string nomJoueur)
 {
     if (lesJoueurs.Count < 4)
     {
         joueurCourant = leRepositoryJoueur.ChercherParNom(nomJoueur);
         if (joueurCourant.idJoueur == 0)
         {
             JoueurInexistant(this, new EventArgs());
         }
         joueurCourant.ChangerPoints(50);
         lesJoueurs.Add(joueurCourant);
         return(joueurCourant.nomJoueur);
     }
     else
     {
         return("full");
     }
 }