Example #1
0
        public void enregistrerInfos(Personne j1, Personne j2)
        {
            var csv = new StringBuilder();

            var nom_j1 = j1.nom;
            var nom_j2 = j2.nom;

            var score_j1 = j1.score;
            var score_j2 = j2.score;

            var newLineJ1 = string.Format("{0};{1}", nom_j1, score_j1);
            var newLineJ2 = string.Format("{0};{1}", nom_j2, score_j2);

            csv.AppendLine(newLineJ1);
            csv.AppendLine(newLineJ2);

            File.AppendAllText(this.filePath, csv.ToString());
        }
Example #2
0
 public Personne(Personne p)
 {
     this._nom          = p.nom;
     this.listTrouPerso = new List <Trou>(p.listTrouPerso);
     this._score        = p.score;
 }
Example #3
0
 public Partie(Personne joueur1, Personne joueur2)
 {
     this.joueur1 = joueur1;
     this.joueur2 = joueur2;
 }