I am interested in making a chess algorithm. For this, I will be using the python-chess library. However, to make a good algorithm I need to be able to return the opposing persons legal moves even if it isn't their turn. So in the start of the game it would return
board.legal_moves() -> [A2A4, A2A1, B2B4, B2B1, ect...]
I was wondering if during the start of the game I could say something like
board.enemy_legal_moves() > [A7A5, A7A6, ect...]
or if there is any algorithmic way I could do it. Thank you for your time!