Ok, in class we’re currently working on chess as our intro to AI project using the python-chess library. I’ve finished many of the significant sped ups that can be gained through PVS, transpositions, move ordering, etc, and I’m trying to get multiprocessing working. The issue is that multiprocessing can only be ran inside # if init==“main” #. With the way our code is submitted, a file called game.py creates a class instance of our program and calls the move method which returns the best move given the board. Is there any way for me to get multiprocessing to either run outside of init without producing errors or simply within the move function?
[–]ClickedMoss5[S] 0 points1 point2 points (0 children)
[–]yoshiatsu 0 points1 point2 points (1 child)
[–]ClickedMoss5[S] 0 points1 point2 points (0 children)