Open notbeckhamster opened 1 year ago
Well set attacked squares seems to be taking most of the cpu time understandbly but i suspect using arrays over array list will boost performance, may be smth to consider iwth bitboards can do this type of calc easily.
since piece list wasnt sorted it was changing during perft since pass by reference in java, ie quick fix for perft in mean time ArrayList pieces = (ArrayList)piecesArr[i].clone();
cant quite think of a good DS for it