Update app.py
Browse files
app.py
CHANGED
|
@@ -8,13 +8,13 @@ import requests
|
|
| 8 |
from typing import Optional, List, Dict, Any
|
| 9 |
|
| 10 |
def position_evaluation(fen):
|
| 11 |
-
"""Chess position evaluation.
|
| 12 |
|
| 13 |
Args:
|
| 14 |
fen (str): Chess position in FEN
|
| 15 |
|
| 16 |
Returns:
|
| 17 |
-
str:
|
| 18 |
"""
|
| 19 |
url = "https://stockfish.online/api/s/v2.php"
|
| 20 |
params = {"fen": fen, "depth": 12}
|
|
|
|
| 8 |
from typing import Optional, List, Dict, Any
|
| 9 |
|
| 10 |
def position_evaluation(fen):
|
| 11 |
+
"""Chess position evaluation. Get best move with continuation in UCI notation for chess position in FEN.
|
| 12 |
|
| 13 |
Args:
|
| 14 |
fen (str): Chess position in FEN
|
| 15 |
|
| 16 |
Returns:
|
| 17 |
+
str: Best move with continuation in UCI notation
|
| 18 |
"""
|
| 19 |
url = "https://stockfish.online/api/s/v2.php"
|
| 20 |
params = {"fen": fen, "depth": 12}
|