public void testeRien() { Evaluateur eval = new Evaluateur(); laMain[0] = new Carte(0, 0); laMain[1] = new Carte(1, 0); laMain[2] = new Carte(2, 0); laMain[3] = new Carte(3, 0); laMain[4] = new Carte(4, 0); laMain[5] = new Carte(5, 0); laMain[6] = new Carte(6, 0); v = eval.CalculeValeurPostRiver(laMain); Assert.AreEqual("rien: dix, neuf, huit, cinq, quatre.",eval.ConvertEvalEnFrancais(v)); laMain[0] = new Carte(0, 0); laMain[1] = new Carte(6, 0); laMain[2] = new Carte(7, 0); laMain[3] = new Carte(9, 0); laMain[4] = new Carte(10, 1); laMain[5] = new Carte(11, 1); laMain[6] = new Carte(12, 1); v = eval.CalculeValeurPostRiver(laMain); Assert.AreEqual("rien: As, Roi, Dame, Valet, 9", eval.ConvertEvalEnFrancais(v)); }
public uneMain(double duree) { mainOrigine = new Carte[7]; for (int i = 0; i < 7; i++) { mainOrigine[i] = new Carte(); } Eval = new Evaluateur(); }
public uneMain(Carte[] lamain) { mainTriee = new Carte[7]; for (int i = 0; i < 7; i++) { mainOrigine[i] = lamain[i]; } Trier(); Eval = new Evaluateur(); }
static void Main(string[] args) { Console.WriteLine("Ouverture de l'évaluateur"); Evaluateur eval = new Evaluateur(); Carte[] laMain = new Carte[7]; laMain[0] = new Carte(0, 0); laMain[1] = new Carte(1, 0); laMain[2] = new Carte(2, 0); laMain[3] = new Carte(3, 0); laMain[4] = new Carte(4, 0); laMain[5] = new Carte(5, 0); laMain[6] = new Carte(6, 0); int v = eval.CalculeValeurPostRiver(laMain); Console.WriteLine("Valeur = " + v); Console.WriteLine(eval.ConvertEvalEnFrancais(v)); Console.ReadKey(); }