bstraehle commited on
Commit
5a051f0
·
verified ·
1 Parent(s): d789418

Update multi_agent.py

Browse files
Files changed (1) hide show
  1. multi_agent.py +2 -2
multi_agent.py CHANGED
@@ -8,12 +8,12 @@ class MultiAgent:
8
  board = chess.Board()
9
  board_svgs = []
10
 
11
- def get_legal_moves() -> Annotated[str, "A list of legal moves in UCI format"]:
12
  return "Possible moves are: " + ",".join(
13
  [str(move) for move in self.board.legal_moves]
14
  )
15
 
16
- def make_move(move: Annotated[str, "A move in UCI format."]) -> Annotated[str, "Result of the move."]:
17
  move = chess.Move.from_uci(move)
18
  self.board.push_uci(str(move))
19
  self.made_move = True
 
8
  board = chess.Board()
9
  board_svgs = []
10
 
11
+ def get_legal_moves(self) -> Annotated[str, "A list of legal moves in UCI format"]:
12
  return "Possible moves are: " + ",".join(
13
  [str(move) for move in self.board.legal_moves]
14
  )
15
 
16
+ def make_move(self, move: Annotated[str, "A move in UCI format."]) -> Annotated[str, "Result of the move."]:
17
  move = chess.Move.from_uci(move)
18
  self.board.push_uci(str(move))
19
  self.made_move = True