run games on same core for --proc 1

This commit is contained in:
2024-01-30 16:11:44 +01:00
committed by Stefan Steininger
parent 15ce6c5316
commit 2e3fdb62e9
3 changed files with 34 additions and 34 deletions

View File

@@ -1,4 +1,5 @@
import random
import sys
import time
import chess
import chess.engine
@@ -158,3 +159,8 @@ def main():
if __name__ == '__main__':
main()
# Note: prevent endless wait on StockFish process
# by allowing for cleanup of objects (which closes stockfish)
import gc
gc.collect()