Simple Flask application, enables web usage of package board_to_fen package [https://github.com/mcdominik/board_to_fen] Forsyth–Edwards Notation explained: https://en.wikipedia.org/wiki/Forsyth%E2%80%93Edwards_Notation
if you need the package alone you can simply install it via pip:
pip install board_to_fen
docker pull mcdominik/board2fen_cpu
Simple FEN options:
- black view: toggle if you provide image with black player perspective
Full FEN options:
- black view: toggle if you provide image with black player perspective
- next move: who make next move
- who can castle: castle availability
- "en passant" target square: en passant square -> player has to move pawn 2 squares forward in the last move
- full-move number: numbers of moves since game stared
- half-move number: numbers of moves since the last capture or pawn advance, used for the fifty-move rule
- Image has to be provided in neutral angle (player's perspective).
- Image has to be square.
- Image can't contain paddings, borders etc. other than 64 squares (with pieces) itself.