public void NouvellePartie() { motCorrect = Donnee.getMotPendu(); StringBuilder str = new StringBuilder(); str.Append('_', motCorrect.Length); motJoueur = str.ToString().ToCharArray(); nbrErreur = 0; }
public Partie(string speudo) { this.speudo = speudo; motCorrect = Donnee.getMotPendu(); StringBuilder str = new StringBuilder(); str.Append('_', motCorrect.Length); motJoueur = str.ToString().ToCharArray(); nbrErreur = 0; nbrMotTrouve = 0; nbrErreurTotal = 0; }