コード例 #1
0
        public void NouvellePartie()
        {
            motCorrect = Donnee.getMotPendu();

            StringBuilder str = new StringBuilder();

            str.Append('_', motCorrect.Length);
            motJoueur = str.ToString().ToCharArray();

            nbrErreur = 0;
        }
コード例 #2
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;
        }