Update multi_agent.py
Browse files- multi_agent.py +4 -3
multi_agent.py
CHANGED
@@ -25,8 +25,6 @@ def make_move(move: Annotated[str, "A move in UCI format."]) -> Annotated[str, "
|
|
25 |
fill={move.from_square: "gray"},
|
26 |
size=200
|
27 |
))))
|
28 |
-
print("###")
|
29 |
-
print(len(board_displays))
|
30 |
|
31 |
piece = board.piece_at(move.to_square)
|
32 |
piece_symbol = piece.unicode_symbol()
|
@@ -128,12 +126,15 @@ def run_multi_agent(llm, num_turns):
|
|
128 |
|
129 |
result = ""
|
130 |
turn_num = 0
|
|
|
|
|
|
|
131 |
|
132 |
for board_display, chat in zip(board_displays, chat_history):
|
133 |
print("###")
|
134 |
print(chat.get('content'))
|
135 |
print("###")
|
136 |
-
print(
|
137 |
result += f"{board_displays[turn_num]}<br />{turn_num}: {chat.get('content')}<br />"
|
138 |
turn_num += 1
|
139 |
|
|
|
25 |
fill={move.from_square: "gray"},
|
26 |
size=200
|
27 |
))))
|
|
|
|
|
28 |
|
29 |
piece = board.piece_at(move.to_square)
|
30 |
piece_symbol = piece.unicode_symbol()
|
|
|
126 |
|
127 |
result = ""
|
128 |
turn_num = 0
|
129 |
+
|
130 |
+
print("###")
|
131 |
+
print(len(board_displays))
|
132 |
|
133 |
for board_display, chat in zip(board_displays, chat_history):
|
134 |
print("###")
|
135 |
print(chat.get('content'))
|
136 |
print("###")
|
137 |
+
print(str(board_display))
|
138 |
result += f"{board_displays[turn_num]}<br />{turn_num}: {chat.get('content')}<br />"
|
139 |
turn_num += 1
|
140 |
|