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; }
// Cancel the previous ply public void Pop() { pos = stack.Pop(); switchTurn(); }
public void ResetFromPlatformRepresentation(int[] tabVal, Color agentColor) { pos = new Mailbox(tabVal); stack.Clear(); turn = agentColor; }