Correction de AJouterJoueur interface
continuous-integration/drone/push Build is passing Details

master
Céleste BARBOSA 12 months ago
parent 7a430538b9
commit 568da5718b

@ -10,7 +10,7 @@
int NbJoueurs { get; } int NbJoueurs { get; }
int NbJoueursMaximum { get; } int NbJoueursMaximum { get; }
void AjouterJoueur(string nom); Joueur AjouterJoueur(string nom);
Joueur JoueurCourant(); Joueur JoueurCourant();
void PasserLaMain(); void PasserLaMain();

@ -22,9 +22,11 @@ namespace CoreLibrary
} }
public void AjouterJoueur(string nom) public Joueur AjouterJoueur(string nom)
{ {
joueurs[nbJoueurs++] = new Joueur(nom, new Plateau(TailleCodeMaximum, TourMaximum)); Joueur joueur = new Joueur(nom, new Plateau(TailleCodeMaximum, TourMaximum))
joueurs[nbJoueurs++] = joueur;
return joueur;
} }
public Joueur JoueurCourant() public Joueur JoueurCourant()

Loading…
Cancel
Save