//public static int counter = 0; public static void zobristFillArray() { Random rand = new Random(); for (int color = 0; color < 2; color++) { for (int pieceType = 0; pieceType < 6; pieceType++) { for (int square = 0; square < 64; square++) { zArray[color, pieceType, square] = BitOps.randomUInt64(rand); } } } for (int i = 0; i < 2; i++) { zCastle[i] = BitOps.randomUInt64(rand); } for (int i = 0; i < Algorithms.MAX_PLY; i++) { zDepth[i] = BitOps.randomUInt64(rand); } zBlackMove = BitOps.randomUInt64(rand); }