Spaces:
Runtime error
Runtime error
Update Main.py
Browse files
Main.py
CHANGED
|
@@ -34,19 +34,7 @@ def app():
|
|
| 34 |
|
| 35 |
print(topmove)
|
| 36 |
# Create a list of lists, where each inner list contains the UCI strings for a single move
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
# Initialize the output string
|
| 40 |
-
output_string = ""
|
| 41 |
-
|
| 42 |
-
# Iterate over the list of UCI lists and create the output string
|
| 43 |
-
for i, uci_list in enumerate(uci_lists, start=1):
|
| 44 |
-
output_string += f"{i}. "
|
| 45 |
-
output_string += " ".join([uci.uci for uci in uci_list])
|
| 46 |
-
output_string += "\n"
|
| 47 |
-
|
| 48 |
-
print(output_string)
|
| 49 |
-
|
| 50 |
stringprompt = 'Based on the chess board position at this fen string ' + fenstring + 'can you give an in depth analysis as to why ' + topmove + ' is the best move to play based on Material, Development, Center-control, King-safety and Pawn-structures if relevant. Also describe any tactics or ideas that we should be thinking about'
|
| 51 |
|
| 52 |
|
|
|
|
| 34 |
|
| 35 |
print(topmove)
|
| 36 |
# Create a list of lists, where each inner list contains the UCI strings for a single move
|
| 37 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
stringprompt = 'Based on the chess board position at this fen string ' + fenstring + 'can you give an in depth analysis as to why ' + topmove + ' is the best move to play based on Material, Development, Center-control, King-safety and Pawn-structures if relevant. Also describe any tactics or ideas that we should be thinking about'
|
| 39 |
|
| 40 |
|