示例#1
0
        private static int max(Plateau plateau)
        {
            if (plateau.IsFull())
            {
                return eval(plateau);
            }
            int coef = -10000;
                 int tmp =0;
            foreach (var c in plateau.Cases)
            {
                if (c.motif == Motif.Vide)
                {
                    c.motif = plateau.motifMax;
                    Console.WriteLine(plateau.ToString());
                    tmp = min(plateau);

                    if (tmp > coef)
                    {
                        coef = tmp;
                    }
                    c.motif = Motif.Vide;
                }
            }
            return coef;
        }