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
It would be nice if we could input the moves using the short algebraic notation that is standard in the pgn format, e.g., e4 e5 Nf3, in addition to the long format currently supported.
The public api would get only one additional method, Game.apply_san_move(san_string). I have already implemented this and will open a pull request. I'd like to use Chessnut in a hobby project, but want to be able to read in pgn games.
The text was updated successfully, but these errors were encountered:
Add a San class to parse and store the internals of a short algebraic move.
Add san_to_long method to Game to convert the san move to the long version.
Add apply_san_move method to Game to apply the move
Replace xrange with range so that tests run in python3
Add find_all_pieces method to Board similar to find_piece, but returns a list of all indexes instead of just the first one.
Add tests to cover all the new code.
It would be nice if we could input the moves using the short algebraic notation that is standard in the pgn format, e.g., e4 e5 Nf3, in addition to the long format currently supported.
The public api would get only one additional method,
Game.apply_san_move(san_string)
. I have already implemented this and will open a pull request. I'd like to use Chessnut in a hobby project, but want to be able to read in pgn games.The text was updated successfully, but these errors were encountered: