Show HN: A simple site to make chessboard images
chessboardimage.com
chessboardimage.com
"Click a piece to select it, then click on the board to place it."
Okay, cool! I clicked on the King's Pawn, then e4. The king's pawn disappeared, and then... nothing. I clicked e3. I clicked e4 again and then... e5? e2? Nope.
Okay, maybe something went wrong. Let's try with the queen's pawn. d2, pawn goes away. d4? d3? Nope.
I re-read the directions: "Click a piece to select it, then click on the board to place it."
Weird. The pawn went away instead of being selected. How do I select a pawn? Click f2. Nope.
At that point, I look again at the pieces below the board, and click on the pawn. It's selected! I click on e4. It's on the board! Okay, I get this now, but it's not what I expected.
I see what you're doing with the controls, but I think it's a poor match for your default state. When I see a chess board in starting position, my instinct is to move a piece, not to find a way to add new pieces to the board.
My thoughts:
If you want to keep the controls the same, I'd start with an empty board and maybe clarify the directions a smidge. I'd try something like:
To place a piece, first select it from the case, then click any empty square on the board.
To remove an existing piece from the board, click once on it.
Use the buttons below for standard starting position or to import a FEN position.
If you're up for modifying the controls, I was expecting something like: clicking a piece currently on the board selects it. A second click on the same square deletes that piece, while a click on any other square "moves" the selected piece there, emptying its source square and overwriting the contents (if any) of the destination square.I would prefer if you could click a piece to delete, and then, by default, your next board click puts that piece in the new place.
My "Farbfeld Utilities" software also can be used for making a chess board, if you have all of the pieces pictured in one file. So when you want to do it locally rather than adding a link on a web page, this can be done. (You can alter the colours and metrics below as needed)
ff-chess 8 8 32 E5E5D7 001000 \
| ff-composite <(pngff < pieces.png \
| ff-text +PNBRQKpnbrqk 32 32 `sed 's.7.43.g;s.6.33.g;s.5.32.g;s.4.22.g;s.3.21.g;s.2.11.g;s./. .g' < board.fen`) 0,0,0 \
| ff-border 0020FF 8http://www.jinchess.com/chessboard/composer/
about once a week for creating diagrams. Have a look at them for some feature ideas.
Looking at your site the main problem I see is you don't indicate which player is to move anywhere.
I don't use all the features on the other site but I think my main advice would be to have a very generic colours and piece-font as your default and give people options to change them.
You can put a board on a page with one tag:
<chess-board></chess-board>
And set it up via attributes: <chess-board
draggable-pieces
position="8/R7/8/8/k1K5/8/8/8">
</chess-board>
The element also has methods to make animated moves, set position, clear the board, etc.I still have a few touch-interaction bugs to fix, so I haven't submitted it to HN myself yet. I hope it's useful to someone!
They have a board editor: https://lichess.org/editor/rnbqkbnr/pppppppp/8/8/8/8/PPPPPPP...
But I've not seen an option to generate an image (aside from taking a screenshot), which is what the posted site appears to have been made for.