Spaces:
Paused
Paused
Commit
·
316ed00
1
Parent(s):
131b69d
Update app.py
Browse files
app.py
CHANGED
|
@@ -11,15 +11,14 @@ import stat
|
|
| 11 |
|
| 12 |
def eval(fenstring):
|
| 13 |
output = ""
|
| 14 |
-
os.chmod("./
|
| 15 |
-
engine = chess.engine.SimpleEngine.popen_uci("./
|
| 16 |
-
engine.configure({"Skill Level":13})
|
| 17 |
|
| 18 |
# Score: PovScore(Cp(+20), WHITE)
|
| 19 |
|
| 20 |
board = chess.Board(fenstring)
|
| 21 |
|
| 22 |
-
info = engine.analyse(board, chess.engine.Limit(depth=
|
| 23 |
|
| 24 |
|
| 25 |
# Score: PovScore(Mate(+1), WHITE)
|
|
|
|
| 11 |
|
| 12 |
def eval(fenstring):
|
| 13 |
output = ""
|
| 14 |
+
os.chmod("./komodo-14.1-linux",0o0777)
|
| 15 |
+
engine = chess.engine.SimpleEngine.popen_uci("./komodo-14.1-linux")
|
|
|
|
| 16 |
|
| 17 |
# Score: PovScore(Cp(+20), WHITE)
|
| 18 |
|
| 19 |
board = chess.Board(fenstring)
|
| 20 |
|
| 21 |
+
info = engine.analyse(board, chess.engine.Limit(depth=8),multipv=3)
|
| 22 |
|
| 23 |
|
| 24 |
# Score: PovScore(Mate(+1), WHITE)
|