Update multi_agent.py
Browse files- multi_agent.py +13 -0
multi_agent.py
CHANGED
@@ -65,8 +65,21 @@ def get_num_turns(num_moves):
|
|
65 |
return num_turns
|
66 |
|
67 |
def run_multi_agent(llm_white, llm_black, num_moves):
|
|
|
68 |
global g_moves
|
69 |
g_moves = num_moves
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
70 |
llm_config_white = {"model": llm_white}
|
71 |
llm_config_black = {"model": llm_black}
|
72 |
|
|
|
65 |
return num_turns
|
66 |
|
67 |
def run_multi_agent(llm_white, llm_black, num_moves):
|
68 |
+
###
|
69 |
global g_moves
|
70 |
g_moves = num_moves
|
71 |
+
###
|
72 |
+
global counter
|
73 |
+
counter = 0
|
74 |
+
global made_move
|
75 |
+
made_move = False
|
76 |
+
|
77 |
+
global board
|
78 |
+
board = chess.Board()
|
79 |
+
global board_svgs
|
80 |
+
board_svgs = []
|
81 |
+
###
|
82 |
+
|
83 |
llm_config_white = {"model": llm_white}
|
84 |
llm_config_black = {"model": llm_black}
|
85 |
|