Skip to content

Commit 51f5234

Browse files
committed
Update python_easy_chess_gui.py
* Run engine with Python v3.7.3. * Successfully compiled to exe with Pyinstaller and Python v3.7.3.
1 parent 61bf22e commit 51f5234

1 file changed

Lines changed: 6 additions & 8 deletions

File tree

python_easy_chess_gui.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
"""
33
python_easy_chess_gui.py
44
5+
Requirements:
6+
Python 3.7.3 and up
7+
58
PySimpleGUI Square Mapping
69
board = [
710
56, 57, ... 63
@@ -55,7 +58,7 @@
5558

5659

5760
APP_NAME = 'Python Easy Chess GUI'
58-
APP_VERSION = 'v0.79'
61+
APP_VERSION = 'v0.80'
5962
BOX_TITLE = '{} {}'.format(APP_NAME, APP_VERSION)
6063

6164

@@ -308,14 +311,9 @@ def get_board(self, board):
308311
self.board = board
309312

310313
def run(self):
311-
# Use Python 3.7 to compile to exe
312-
is_compile_to_exe = False
313-
if is_compile_to_exe:
314-
self.engine = chess.engine.SimpleEngine.popen_uci(
314+
self.engine = chess.engine.SimpleEngine.popen_uci(
315315
str(self.engine_path),
316-
creationflags=subprocess.CREATE_NO_WINDOW)
317-
else:
318-
self.engine = chess.engine.SimpleEngine.popen_uci(str(self.engine_path))
316+
creationflags=subprocess.CREATE_NO_WINDOW)
319317

320318
try:
321319
self.engine.configure({'Threads': self.threads})

0 commit comments

Comments
 (0)