bstraehle commited on
Commit
ed89e59
·
verified ·
1 Parent(s): 933ed79

Update multi_agent.py

Browse files
Files changed (1) hide show
  1. multi_agent.py +6 -3
multi_agent.py CHANGED
@@ -134,12 +134,15 @@ def run_multi_agent(llm, num_turns):
134
  turn_num = 0
135
 
136
  for chat in chat_history:
137
- result += f"<b>Move {turn_num}:</b> {chat.get('content')}<br />"
 
 
 
 
 
138
  if turn_num > 0:
139
  result += f"{board_svgs[turn_num - 1]}"
140
  result += "\n***\n"
141
- print("###")
142
- print(chat.get('content'))
143
  turn_num += 1
144
 
145
  return result
 
134
  turn_num = 0
135
 
136
  for chat in chat_history:
137
+ player = ""
138
+ if turn_num % 2 == 0:
139
+ player = "Player Black"
140
+ else:
141
+ player = "Player White"
142
+ result += f"<b>{player} {turn_num}:</b> {chat.get('content')}<br />"
143
  if turn_num > 0:
144
  result += f"{board_svgs[turn_num - 1]}"
145
  result += "\n***\n"
 
 
146
  turn_num += 1
147
 
148
  return result