Skip to content

Commit 29b2c81

Browse files
committed
Make max_depth a keyword param in EasyChessGUI class
1 parent 406220b commit 29b2c81

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

python_easy_chess_gui.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@ class EasyChessGui:
628628
def __init__(self, theme, engine_config_file, user_config_file,
629629
gui_book_file, computer_book_file, human_book_file,
630630
is_use_gui_book, is_random_book, max_book_ply,
631-
max_depth):
631+
max_depth=MAX_DEPTH):
632632
self.theme = theme
633633
self.user_config_file = user_config_file
634634
self.engine_config_file = engine_config_file
@@ -3496,7 +3496,6 @@ def main_loop(self):
34963496

34973497

34983498
def main():
3499-
max_depth = MAX_DEPTH
35003499
engine_config_file = 'pecg_engines.json'
35013500
user_config_file = 'pecg_user.json'
35023501

@@ -3512,7 +3511,7 @@ def main():
35123511
pecg = EasyChessGui(theme, engine_config_file, user_config_file,
35133512
pecg_book, book_from_computer_games,
35143513
book_from_human_games, is_use_gui_book, is_random_book,
3515-
max_book_ply, max_depth)
3514+
max_book_ply)
35163515

35173516
pecg.main_loop()
35183517

0 commit comments

Comments
 (0)