Skip to content

Commit

Permalink
Merge pull request #2 from eoakley/master
Browse files Browse the repository at this point in the history
Fix OSError for Linux and Windows
  • Loading branch information
nickzuber authored Aug 9, 2019
2 parents 3d8809d + ecfe51b commit 8e9c75d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion chs/engine/stockfish.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
import os
import platform
import math
import chess.engine
from chs.utils.core import Levels


file_path = os.path.dirname(os.path.abspath(__file__))
engine_path = 'stockfish-10-64'

if 'Windows' in platform.system():
engine_path = 'stockfish_10_x64_windows.exe'
elif 'Linux' in platform.system():
engine_path = 'stockfish_10_x64_linux'
else:
engine_path = 'stockfish_10_x64_mac'

class Engine(object):
def __init__(self, level):
Expand Down
Binary file added chs/engine/stockfish_10_x64_linux
Binary file not shown.
File renamed without changes.
Binary file added chs/engine/stockfish_10_x64_windows.exe
Binary file not shown.

0 comments on commit 8e9c75d

Please sign in to comment.