From ebadd02df71be13282a9ff1c013e7b71f600a988 Mon Sep 17 00:00:00 2001 From: Yorick Barbanneau Date: Wed, 20 Dec 2023 22:51:02 +0100 Subject: [PATCH] Adjust dome command line parameters --- src/game.py | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/game.py b/src/game.py index bf30d3d..fcb72b6 100755 --- a/src/game.py +++ b/src/game.py @@ -52,25 +52,25 @@ def parse_aguments(): default='score', ) + parser.add_argument('-br', '--black-randomize-moves', + help='Apply a random function on moves list before explore the game tree - black player', + type=bool, + default=True, + ) + + parser.add_argument('-wr', '--white-randomize-moves', + help='Apply a random function on moves list before explore the game tree - white player', + type=bool, + default=True, + ) parser.add_argument('--weight', help='Weight table for weight based heuristic engines', type=int, nargs=4, default=[-5, 2, 10,25] ) - parser.add_argument('-bR', '--black-randomize-moves', - help='Apply a random function on moves list before explore the game tree - black player', - type=bool, - default=True, - ) - - parser.add_argument('-wR', '--white-randomize-moves', - help='Apply a random function on moves list before explore the game tree - white player', - type=bool, - default=True, - ) parser.add_argument('--show-weights-table', - help='Display weight table used in \'weight\' and \'full\' heuristic calculation', + help='Display weight table used in \'weight\' and \'full\' heuristic calculation and exit', action='store_true', )