Falguni commited on
Commit
6c9eb25
·
1 Parent(s): 79fb409

Update engine path

Browse files
Files changed (1) hide show
  1. src/thinksqure_engine.py +2 -1
src/thinksqure_engine.py CHANGED
@@ -1,10 +1,11 @@
 
1
  from typing import Optional
2
  import chess
3
  import chess.engine
4
 
5
 
6
  class ThinkSquareEngine:
7
- _ENGINE = "ThinkSquare/bin/stockfish"
8
 
9
  @staticmethod
10
  def get_best_move(fen: Optional[str] = None, time_limit=0.1):
 
1
+ from pathlib import Path
2
  from typing import Optional
3
  import chess
4
  import chess.engine
5
 
6
 
7
  class ThinkSquareEngine:
8
+ _ENGINE = str(Path("bin/stockfish").resolve())
9
 
10
  @staticmethod
11
  def get_best_move(fen: Optional[str] = None, time_limit=0.1):