Update multi_agent.py
Browse files- multi_agent.py +3 -3
multi_agent.py
CHANGED
@@ -46,7 +46,7 @@ def set_game_over():
|
|
46 |
game_over = True
|
47 |
|
48 |
def check_made_move(msg):
|
49 |
-
print("###### check_made_move")
|
50 |
global made_move
|
51 |
|
52 |
if made_move:
|
@@ -103,7 +103,7 @@ def run_multi_agent(llm_white, llm_black, num_moves):
|
|
103 |
"First call get_legal_moves(), to get a list of legal moves. "
|
104 |
"If there is no legal move, call set_game_over() "
|
105 |
"Else call make_move(move) to make a legal move. "
|
106 |
-
"Analyze the move in 3 bullet points. Respond in format **Analysis:** move in UCI format, unordered list.",
|
107 |
llm_config=llm_config_white,
|
108 |
is_termination_msg=check_game_over
|
109 |
)
|
@@ -114,7 +114,7 @@ def run_multi_agent(llm_white, llm_black, num_moves):
|
|
114 |
"First call get_legal_moves(), to get a list of legal moves. "
|
115 |
"If there is no legal move, call set_game_over() "
|
116 |
"Else call make_move(move) to make a legal move. "
|
117 |
-
"Analyze the move in 3 bullet points. Respond in format **Analysis:** move in UCI format, unordered list.",
|
118 |
llm_config=llm_config_black,
|
119 |
is_termination_msg=check_game_over
|
120 |
)
|
|
|
46 |
game_over = True
|
47 |
|
48 |
def check_made_move(msg):
|
49 |
+
print("###### check_made_move: " + str(made_move))
|
50 |
global made_move
|
51 |
|
52 |
if made_move:
|
|
|
103 |
"First call get_legal_moves(), to get a list of legal moves. "
|
104 |
"If there is no legal move, call set_game_over() "
|
105 |
"Else call make_move(move) to make a legal move. "
|
106 |
+
"Analyze the move in 3 bullet points. Respond in format **Analysis:** move in UCI format (emoji of piece), unordered list.",
|
107 |
llm_config=llm_config_white,
|
108 |
is_termination_msg=check_game_over
|
109 |
)
|
|
|
114 |
"First call get_legal_moves(), to get a list of legal moves. "
|
115 |
"If there is no legal move, call set_game_over() "
|
116 |
"Else call make_move(move) to make a legal move. "
|
117 |
+
"Analyze the move in 3 bullet points. Respond in format **Analysis:** move in UCI format (emoji of piece), unordered list.",
|
118 |
llm_config=llm_config_black,
|
119 |
is_termination_msg=check_game_over
|
120 |
)
|