This repository has been archived on 2023-12-31. You can view files and clone it, but cannot push or open issues or pull requests.
Considition-2020/launcher.py
2020-10-07 13:41:44 +02:00

23 lines
437 B
Python

import main
import clearGames
from multiprocessing import Pool
proc_running = 4 # MAX 4!!!
def run_main(n):
result = main.main()
return result
def launch(list):
for result in list:
print("Game " + result[0] + " had a score of: " + str(result[1]))
if __name__ == '__main__':
clearGames.clear_it()
with Pool(proc_running) as p:
results = p.map(run_main, range(proc_running))
launch(results)