You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After running stockfish.set_position([VALID MOVES])
and then trying print(stockfish.get_fen_position())
you will only be returned the starting fen position, not where you expect after running set_position.
This is problematic since I'm trying to save FEN positions after setting the moves. Could someone see if this same issue is happening to them?
The text was updated successfully, but these errors were encountered:
CharlesGraven
changed the title
FEN always returns starting position
get_fen only works after set_fen, not after a pgn
Jun 16, 2020
CharlesGraven
changed the title
get_fen only works after set_fen, not after a pgn
get_fen_position() doesn't work after set_position()
Jun 16, 2020
deftest_get_fen_position_after_some_moves(self, stockfish):
stockfish.set_position(["e2e4", "e7e6"])
assert (
stockfish.get_fen_position()
=="rnbqkbnr/pppp1ppp/4p3/8/4P3/8/PPPP1PPP/RNBQKBNR w KQkq - 0 2"# it's not a start position
)
* Works to make a new command to not run slow tests. However, get a warning message that testing like this via setup.py will be deprecated at some point.
* Change back some values.
* Format with black.
* Add slow marker to some of the tests.
* Update README.md
After running stockfish.set_position([VALID MOVES])
and then trying print(stockfish.get_fen_position())
you will only be returned the starting fen position, not where you expect after running set_position.
This is problematic since I'm trying to save FEN positions after setting the moves. Could someone see if this same issue is happening to them?
The text was updated successfully, but these errors were encountered: