Draw a chess position with AI
Turn a list of squares or the placement field from a saved game into a board you can open in a browser. Standard chess and Xiangqi have separate views.
To draw a chess position with AI, give your agent the squares occupied by the pieces you want to show. That can be as little as two kings and a pawn for a lesson. The chess-board skill explains how to record the ranks in order and turn them into a diagram. You can open the board yourself before handing a pupil the exercise.
A saved game may give you an entire FEN string. Only the first field contributes to the picture. Whose turn it is can be decisive in a pawn ending, so put that detail in the exercise caption. The same diagram can illustrate both versions of the problem.
What it does
- Reconstruct the position at the point where a game annotation becomes hard to follow.
- Give a chess club a browser view of a puzzle without setting up physical boards.
- Open a second view after a proposed move and compare the two arrangements.
- Check the rank order in a position you transcribed by hand.
- Show a Xiangqi starting position on its own nine-file board.
Install and use
- Install the skill in your agent and have a browser available. The viewer requires no account or key.
- Supply the piece locations or a placement string, and specify which game you mean.
- Open the resulting board, either locally with the supplied files or on the maker’s hosted page. Check one piece near each end for orientation.
FAQ
Source
Made by Frost Ming. Original skill: chess-board, published on GitHub under the MIT licence.
View on GitHub