Beispiel #1
0
        //用来复制一个当前的游戏状态
        public override Position Clone()
        {
            PositionP4 newposition = new PositionP4(this.j1aletrait, lins, cols, currentX, currentY, NbCoups);

            newposition.possibleCoup  = (ArrayList)possibleCoup.Clone();
            newposition.nextXPosition = (ArrayList)nextXPosition.Clone();
            newposition.table         = table.Clone() as Case[, ];
            return(newposition);
        }
Beispiel #2
0
        public TestQ5()
        {
            int            cols      = 7;
            int            lins      = 6;
            PositionP4     pInitiale = new PositionP4(true, lins, cols);
            JoueurHumainP4 j0        = new JoueurHumainP4();
            JMCTS          j1        = new JMCTS(90, 100, 100);

            Partie partie = new Partie(j1, j0, pInitiale);

            partie.Commencer(true);
            Console.ReadLine();
        }