Ejemplo n.º 1
0
        public Mailbox(Mailbox m)
        {
            this.color             = new int[64];
            this.piece             = new int[64];
            this.etatPieceBlanche  = new int[6];
            this.etatPieceNoir     = new int[6];
            this.countPieceBlanche = m.countPieceBlanche;
            this.countPieceNoir    = m.countPieceNoir;

            Array.Copy(m.piece, piece, 64);
            Array.Copy(m.color, color, 64);
            Array.Copy(m.etatPieceBlanche, etatPieceBlanche, 6);
            Array.Copy(m.etatPieceNoir, etatPieceNoir, 6);

            this.ep      = m.ep;
            this.endGame = m.endGame;
        }
Ejemplo n.º 2
0
 // Cancel the previous ply
 public void Pop()
 {
     pos = stack.Pop();
     switchTurn();
 }
Ejemplo n.º 3
0
 public void ResetFromPlatformRepresentation(int[] tabVal, Color agentColor)
 {
     pos = new Mailbox(tabVal);
     stack.Clear();
     turn = agentColor;
 }