我试过这个:
import chess_py as chess
board=chess.Board()
但在我的内核中它给出了这个错误:
File "C:\Users\raghu\anaconda3\lib\site-packages\chess_py\core\board.py", line 67, in __init__
self.king_loc_dict = {white: self.find_king(white),
File "C:\Users\raghu\anaconda3\lib\site-packages\chess_py\core\board.py", line 341, in find_king
return self.find_piece(King(input_color, Location(0, 0)))
File "C:\Users\raghu\anaconda3\lib\site-packages\chess_py\core\board.py", line 310, in find_piece
if not self.is_square_empty(loc) and \
File "C:\Users\raghu\anaconda3\lib\site-packages\chess_py\core\board.py", line 183, in is_square_empty
return self.position[location.rank][location.file] is None
IndexError: string index out of range