5858
5959
6060APP_NAME = 'Python Easy Chess GUI'
61- APP_VERSION = 'v0.82 '
61+ APP_VERSION = 'v0.83 '
6262BOX_TITLE = '{} {}' .format (APP_NAME , APP_VERSION )
6363
6464
1551551. Copy exe file in the engines directory
156156
157157(H) To show engine search info
158- 1. Press the ENGINE SEARCH INFO text
158+ 1. Press the Engine Search Info text
159159
160160(I) To hide Book 1 and Book 2
1611611. Press the Book 1 or Book 2 text
@@ -421,7 +421,7 @@ def __init__(self, gui_book_file, computer_book_file, human_book_file,
421421 self .engine_path_and_name = None
422422 self .engine_file = None
423423 self .opp_eng_id_name = None
424- self .adviser_engine = None
424+ self .adviser_file = None
425425 self .adviser_hash = 128
426426 self .adviser_threads = 1
427427 self .adviser_engine_path = None
@@ -1818,30 +1818,31 @@ def build_main_layout(self):
18181818
18191819 board_controls = [
18201820 [sg .Text ('Mode Neutral' , size = (36 , 1 ), font = ('Consolas' , 10 ), key = '_gamestatus_' )],
1821- [sg .Text ('White' , size = (6 , 1 ), font = ('Consolas' , 10 )), sg .Text ('Human' ,
1821+ [sg .Text ('White' , size = (7 , 1 ), font = ('Consolas' , 10 )), sg .Text ('Human' ,
18221822 font = ('Consolas' , 10 ), key = '_White_' , size = (36 , 1 ), relief = 'sunken' )],
1823- [sg .Text ('Black' , size = (6 , 1 ), font = ('Consolas' , 10 )), sg .Text ('Computer' ,
1823+ [sg .Text ('Black' , size = (7 , 1 ), font = ('Consolas' , 10 )), sg .Text ('Computer' ,
18241824 font = ('Consolas' , 10 ), key = '_Black_' , size = (36 , 1 ), relief = 'sunken' )],
18251825
1826- [sg .Text ('Advise' , font = ('Consolas' , 10 ), click_submits = True , key = 'advise_k' ),
1826+ [sg .Text ('Adviser' , size = (7 , 1 ), font = ('Consolas' , 10 ),
1827+ click_submits = True , key = 'advise_k' ),
18271828 sg .Text ('' , font = ('Consolas' , 10 ), key = 'advise_info_k' , relief = 'sunken' ,
18281829 size = (36 ,1 ))],
18291830
18301831 [sg .Multiline ('' , do_not_clear = True , autoscroll = True , size = (0 , 1 ),
18311832 font = ('Consolas' , 10 ), key = '_movelist_' , disabled = True )],
18321833
1833- [sg .Text ('BOOK 1\n src: Computer games' , size = (20 , 2 ),
1834+ [sg .Text ('BOOK 1, Comp games' , size = (21 , 1 ),
18341835 font = ('Consolas' , 10 ), click_submits = True , key = 'book1_k' ),
1835- sg .Text ('BOOK 2\n src: Human games' ,
1836+ sg .Text ('BOOK 2, Human games' ,
18361837 font = ('Consolas' , 10 ), click_submits = True , key = 'book2_k' )],
18371838 [sg .Multiline ('' , do_not_clear = True , autoscroll = False , size = (0 , 8 ),
18381839 font = ('Consolas' , 10 ), key = 'polyglot_book1_k' , disabled = True ),
18391840 sg .Multiline ('' , do_not_clear = True , autoscroll = False , size = (2 , 8 ),
18401841 font = ('Consolas' , 10 ), key = 'polyglot_book2_k' , disabled = True )],
18411842
1842- [sg .Text ('ENGINE SEARCH INFO ' , font = ('Consolas' , 10 ), size = (28 , 1 ),
1843+ [sg .Text ('Engine Search Info ' , font = ('Consolas' , 10 ), size = (30 , 1 ),
18431844 click_submits = True , key = 'search_info_k' )],
1844- [sg .Text ('' , key = 'search_info_all_k' , size = (44 , 1 ),
1845+ [sg .Text ('' , key = 'search_info_all_k' , size = (45 , 1 ),
18451846 font = ('Consolas' , 10 ), relief = 'sunken' )],
18461847 ]
18471848
@@ -1882,8 +1883,8 @@ def main_loop(self):
18821883 self .get_engine_id_name ()
18831884 engine_id_name = self .opp_eng_id_name
18841885
1885- self .adviser_engine = self .engine_list [0 ]
1886- self .adviser_engine_path = Path ('Engines' , self .adviser_engine )
1886+ self .adviser_file = self .engine_list [0 ]
1887+ self .adviser_engine_path = Path ('Engines' , self .adviser_file )
18871888
18881889 self .init_game ()
18891890
@@ -1974,7 +1975,7 @@ def main_loop(self):
19741975
19751976 # Mode: Neutral, Set Adviser engine
19761977 if button == 'Set Engine Adviser' :
1977- current_adviser_engine_file = self .adviser_engine
1978+ current_adviser_engine_file = self .adviser_file
19781979 current_adviser_engine_path = self .adviser_engine_path
19791980
19801981 layout = [
@@ -2002,7 +2003,7 @@ def main_loop(self):
20022003 e , v = w .Read (timeout = 10 )
20032004
20042005 if e is None or e == 'Cancel' :
2005- self .adviser_engine = current_adviser_engine_file
2006+ self .adviser_file = current_adviser_engine_file
20062007 self .adviser_engine_path = current_adviser_engine_path
20072008 break
20082009
@@ -2018,8 +2019,8 @@ def main_loop(self):
20182019
20192020 # In case the user did not select an engine and presses OK
20202021 try :
2021- self .adviser_engine = v ['engine_file_k' ][0 ]
2022- self .adviser_engine_path = Path ('Engines' , self .adviser_engine )
2022+ self .adviser_file = v ['engine_file_k' ][0 ]
2023+ self .adviser_engine_path = Path ('Engines' , self .adviser_file )
20232024 except :
20242025 logging .info ('User did not select an engine and pressed OK' )
20252026
0 commit comments