|
52 | 52 |
|
53 | 53 |
|
54 | 54 | APP_NAME = 'Python Easy Chess GUI' |
55 | | -APP_VERSION = 'v0.68' |
| 55 | +APP_VERSION = 'v0.69' |
56 | 56 | BOX_TITLE = '{} {}'.format(APP_NAME, APP_VERSION) |
57 | 57 |
|
58 | 58 |
|
|
208 | 208 | ['Boar&d', ['Flip']], |
209 | 209 | ['&Engine', ['Set Engine', 'Set Depth', |
210 | 210 | 'Set Movetime', 'Get Settings::engine_info_k']], |
211 | | - ['&Book', ['Set Book::book_set_k', 'Get Settings::book_info_k']], |
| 211 | + ['&Book', ['Set Book::book_set_k']], |
212 | 212 | ['&Help', ['About']], |
213 | 213 | ] |
214 | 214 |
|
|
224 | 224 | ['&Engine', ['Go', 'Set Engine', 'Set Depth', |
225 | 225 | 'Set Movetime', 'Get Settings::engine_info_k', |
226 | 226 | 'Unhide Search Info']], |
227 | | - ['&Book', ['Set Book::book_set_k', 'Get Settings::book_info_k']], |
| 227 | + ['&Book', ['Set Book::book_set_k']], |
228 | 228 | ['&Help', ['About']], |
229 | 229 | ] |
230 | 230 |
|
@@ -834,16 +834,6 @@ def get_engine_settings(self, engine_id_name): |
834 | 834 | 'Engine = {}\nThreads = {}\nHash = {} mb\nDepth = {}\nMovetime = {} sec'.format( |
835 | 835 | engine_id_name, self.threads, self.hash, self.max_depth, |
836 | 836 | self.max_time), title=BOX_TITLE, keep_on_top=True) |
837 | | - |
838 | | - def get_book_settings(self): |
839 | | - """ Display GUI book settings """ |
840 | | - sg.PopupOK('Book = {}\nUse Book = {}\nBest move = {}\nRandom move = {}\nMax Ply = {}'. \ |
841 | | - format(self.gui_book_file, |
842 | | - 'Yes' if self.is_use_gui_book else 'No', |
843 | | - 'No' if self.is_random_book else 'Yes', |
844 | | - 'Yes' if self.is_random_book else 'No', |
845 | | - self.max_book_ply), |
846 | | - title=BOX_TITLE, keep_on_top=True) |
847 | 837 |
|
848 | 838 | def play_game(self, engine_id_name, board): |
849 | 839 | """ |
@@ -889,12 +879,6 @@ def play_game(self, engine_id_name, board): |
889 | 879 | self.menu_elem.Update(new_menu) |
890 | 880 | continue |
891 | 881 |
|
892 | | - # Allow user to view book settings when engine is to move |
893 | | - # on its first move in Play mode |
894 | | - if button == 'Get Settings::book_info_k': |
895 | | - self.get_book_settings() |
896 | | - continue |
897 | | - |
898 | 882 | # Allow user to change book settings when engine is to move |
899 | 883 | # on its first move in Play mode |
900 | 884 | if button == 'Set Book::book_set_k': |
@@ -1180,11 +1164,6 @@ def play_game(self, engine_id_name, board): |
1180 | 1164 | engine_id=self.get_engine_id_name()) |
1181 | 1165 | continue |
1182 | 1166 |
|
1183 | | - # Allow user to view book settings when user is to move in Play mode |
1184 | | - if button == 'Get Settings::book_info_k': |
1185 | | - self.get_book_settings() |
1186 | | - continue |
1187 | | - |
1188 | 1167 | # Allow user to change book settings when user is to move in Play mode |
1189 | 1168 | if button == 'Set Book::book_set_k': |
1190 | 1169 | # Backup current values, we will restore these value in case |
@@ -1895,11 +1874,6 @@ def main_loop(self): |
1895 | 1874 | self.set_time_limit() |
1896 | 1875 | continue |
1897 | 1876 |
|
1898 | | - # Allow user to view book settings in Neutral mode |
1899 | | - if button == 'Get Settings::book_info_k': |
1900 | | - self.get_book_settings() |
1901 | | - continue |
1902 | | - |
1903 | 1877 | # Allow user to change book settings in Neutral mode |
1904 | 1878 | if button == 'Set Book::book_set_k': |
1905 | 1879 | # Backup current values, we will restore these value in case |
|
0 commit comments