fixed limit for external engines and added arguments to web.py

This commit is contained in:
2024-01-30 23:07:00 +01:00
parent f3d82d6b19
commit e2ddc3868f
3 changed files with 22 additions and 14 deletions

6
web.py
View File

@@ -1,7 +1,9 @@
from chesspp import engine
from chesspp import web
from main import read_arguments
if __name__ == '__main__':
limit = engine.Limit(time=0.5)
web.WebInterface(engine.BayesMctsEngine, engine.ClassicMctsEngine, limit).run_app()
engine1, engine2, strategy1, strategy2, n_games, time, stockfish_path, lc0_path, n_proc = read_arguments()
limit = engine.Limit(time=6)
web.WebInterface(engine1, engine2, strategy1, strategy2, stockfish_path, lc0_path, limit).run_app()