@@ -39,7 +39,7 @@ def run_match(args, test_net):
3939 add_engine_options (command , TEST_PATH + '/' + ENGINE_NAME , quant_net_path )
4040
4141 command .append ('-each' )
42- command .append ('tc=10+0.1 ' )
42+ command .append (f 'tc={ args . time } + { args . increment } ' )
4343 command .append ('-concurrency' )
4444 command .append (str (args .concurrency ))
4545 command .append ('-repeat' )
@@ -92,15 +92,19 @@ def main(args):
9292 parser = argparse .ArgumentParser ()
9393 parser .add_argument ('-n' , '--net-dir' , type = str , required = True ,
9494 help = 'folder containing nets to test' )
95- parser .add_argument ('-c' , '--concurrency' , type = int , default = '1' ,
95+ parser .add_argument ('-c' , '--concurrency' , type = int , default = 1 ,
9696 help = 'the number of games to run in parallell (default 1)' )
97- parser .add_argument ('-g' , '--games' , type = int , default = ' 200' ,
97+ parser .add_argument ('-g' , '--games' , type = int , default = 200 ,
9898 help = 'the number of games to to play in each match (default 200)' )
9999 parser .add_argument ('-o' , '--output' ,
100100 help = 'file to store all playes games in (deafult games.pgn)' ,
101101 type = str , default = 'games.pgn' )
102102 parser .add_argument ('-w' , '--wait' , action = 'store_true' ,
103103 help = 'Wait for new nets to test' )
104+ parser .add_argument ('-t' , '--time' , type = int , default = 5 ,
105+ help = 'base time per game (default 5s)' )
106+ parser .add_argument ('-i' , '--increment' , type = float , default = 0.05 ,
107+ help = 'base time per game (default 0.05s)' )
104108
105109 args = parser .parse_args ()
106110
0 commit comments