Update multi_agent.py
Browse files- multi_agent.py +4 -6
multi_agent.py
CHANGED
@@ -25,8 +25,6 @@ def make_move(move: Annotated[str, "A move in UCI format."]) -> Annotated[str, "
|
|
25 |
size=250
|
26 |
))
|
27 |
|
28 |
-
print("### " + str(len(board_svgs)))
|
29 |
-
|
30 |
piece = board.piece_at(move.to_square)
|
31 |
piece_symbol = piece.unicode_symbol()
|
32 |
piece_name = (
|
@@ -74,8 +72,8 @@ def run_multi_agent(llm_white, llm_black, num_moves):
|
|
74 |
|
75 |
player_white = ConversableAgent(
|
76 |
name="Player White",
|
77 |
-
system_message="You are a chess
|
78 |
-
"First call get_legal_moves(), to get a list of legal moves. "
|
79 |
"Then call make_move(move) to make a move. "
|
80 |
"After a move is made, analyze the move in 3 bullet points. Respond in format **Analysis:** move from/to, unordered list.",
|
81 |
llm_config=llm_config_white,
|
@@ -83,8 +81,8 @@ def run_multi_agent(llm_white, llm_black, num_moves):
|
|
83 |
|
84 |
player_black = ConversableAgent(
|
85 |
name="Player Black",
|
86 |
-
system_message="You are a chess
|
87 |
-
"First call get_legal_moves(), to get a list of legal moves. "
|
88 |
"Then call make_move(move) to make a move. "
|
89 |
"After a move is made, analyze the move in 3 bullet points. Respond in format **Analysis:** move from/to, unordered list.",
|
90 |
llm_config=llm_config_black,
|
|
|
25 |
size=250
|
26 |
))
|
27 |
|
|
|
|
|
28 |
piece = board.piece_at(move.to_square)
|
29 |
piece_symbol = piece.unicode_symbol()
|
30 |
piece_name = (
|
|
|
72 |
|
73 |
player_white = ConversableAgent(
|
74 |
name="Player White",
|
75 |
+
system_message="You are a chess Grandmaster and you play as white. "
|
76 |
+
"First call get_legal_moves(), to get a list of legal moves. If there are no legal moves, terminate the game. "
|
77 |
"Then call make_move(move) to make a move. "
|
78 |
"After a move is made, analyze the move in 3 bullet points. Respond in format **Analysis:** move from/to, unordered list.",
|
79 |
llm_config=llm_config_white,
|
|
|
81 |
|
82 |
player_black = ConversableAgent(
|
83 |
name="Player Black",
|
84 |
+
system_message="You are a chess Grandmaster and you play as black. "
|
85 |
+
"First call get_legal_moves(), to get a list of legal moves. If there are no legal moves, terminate the game. "
|
86 |
"Then call make_move(move) to make a move. "
|
87 |
"After a move is made, analyze the move in 3 bullet points. Respond in format **Analysis:** move from/to, unordered list.",
|
88 |
llm_config=llm_config_black,
|