Skip to content

Commit f4d7ddf

Browse files
committed
Add variable for delaying move display in gui.
1 parent 3d8a394 commit f4d7ddf

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

python_easy_chess_gui.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,7 @@ def __init__(self, eng_queue, engine_config_file, engine_path_and_file,
368368
self.tc_type = tc_type
369369
self.period_moves = period_moves
370370
self.is_ownbook = False
371+
self.is_move_delay = False
371372

372373
def stop(self):
373374
""" Interrupt engine search """
@@ -574,8 +575,8 @@ def run(self):
574575
self.eng_queue.put('{}'.format(info_to_send))
575576
self.bm = result.move
576577

577-
# Apply engine move delay
578-
if False:
578+
# Apply engine move delay if movetime is small
579+
if self.is_move_delay:
579580
while True:
580581
if time.perf_counter() - start_time >= self.move_delay_sec:
581582
break

0 commit comments

Comments
 (0)