static void testDictionnaire() { Dictionnaire myDictionnaire = new Dictionnaire("../MotsPossibles.txt", "FR"); Console.WriteLine(myDictionnaire.ToString()); Console.WriteLine(myDictionnaire.RechDicoRecursif(0, myDictionnaire.finduDico("AVERA"), "AVERA")); }
public jeu(string path_to_dico, string path_to_dice, int the_seed = -1) { monDico = new Dictionnaire(path_to_dico, "FR"); if (the_seed != -1) { rnd = new Random(the_seed); } monPlateau = new Plateau(path_to_dice, rnd); initilisation(); }
private Stack <string> motstrouve = new Stack <string>(); //stack contenant les mots trouvé /// <summary> /// constructeur simple /// </summary> /// <param name="undico"> /// le dico de mot a chercher /// </param> public IA(Dictionnaire undico) { this.ledico = undico; this._name = "IA" + Convert.ToString(id); //id unique id += 1; //le prochain id sera different }