Hi,
I upgraded the Board painter. Many little changes and a new feature : a play mode to move pieces an share boards by any message application you want.
In play mode you can move pieces by selecting them and click in the destination cell.
- play.png (34.75 KiB) Viewed 25794 times
No account needed, the URL describes the whole game status. A "Copy link" button is available when the
game subset is defined.
- sharelinkbut.png (5.37 KiB) Viewed 25798 times
Game sets
The board painter has hundreds of available pieces (more the 600 in February 2021). To share boards states of any kind we use some extended FEN notations, which needs pieces identification. We know standard pieces (K,N,R,Q,B,P) but we don't have abbreviations for all our pieces, and you might want to choose your owns, so we will need to define game subsets.
Extended FEN notation
We can have large boards (wider than 10 columns), and we can have more than 26 pieces, so any time a number or an abbreviation needs more than one char, it is enclosed with brackets.
The uppercase for white only concerns first char. For instance the Musketeer Fortress abbreviation is Fo, so in the link you will find [Fo] for white Fortress and [fo] for black fortress.
Play mode Links : url parameters
You don't have to understand everything, the "Copy link" button will do the job for you, but for those who might be interested, this is how it is encoded :
- gs : game set. It is the name of a predefined game subset which describes used pieces and their abbreviations
- bm : board mode ( 0 : painting / 1 : playing / 2 : editing subset (coming soon...))
- rr : number of reserved rows
- state : pieces positions using pseudo FEN notation.
Examples
- Orthodox start position :
?gs=classic&state=rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR
test it :
https://musketeerchess.net/tools/boardp ... P/RNBQKBNR
- A Musketeer position after choosing Canon and Fortress :
?gs=musk&state=2[ca]3[fo]1/rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR/1[Ca]4[Fo]1&rr=1
test it :
https://musketeerchess.net/tools/boardp ... [Fo]1&rr=1
- A Go non sense position :
?bs=go&gs=go&state=[19]/[19]/[19]/[19]/[19]/3WWWW5BBBB3/2W4W3B4B2/2W8B4B2/2W8B4B2/2W8B4B2/2W3WW3B4B2/2W4W3B4B2/2W4W3B4B2/3WWWW5BBBB3/[19]/[19]/[19]/[19]/[19]
test it :
https://musketeerchess.net/tools/boardp ... ]/[19]/[19]
- You can bookmarks URLs to store starting positions and limited pieces sets :
Classic :
https://musketeerchess.net/tools/boardp ... P/RNBQKBNR
Musketeer :
https://musketeerchess.net/tools/boardp ... BNR/8&rr=1
Go :
https://musketeerchess.net/tools/boardp ... ]/[19]/[19]
Xiangqi :
https://musketeerchess.net/tools/boardp ... /RHEAGAEHR
Xiangqi western :
https://musketeerchess.net/tools/boardp ... /RHEAGAEHR
Shogi :
https://musketeerchess.net/tools/boardp ... /LNSGKGSNL
Other updates
- Board size is saved in local storage, which means you can keep it as long as you use the same browser
- The Cart has been detached to a flying window for much better user experience
To be done
-
Fix game set pieces rotation issue (Shogi) :
edit 20feb21 19:03 fixed
- Play mode only available for square boards, could be extended to circular boards
- An "Edit game set" will soon be available. This is the only information to be saved on the server, so it will need user control, maybe using this forum user login.
- User manual
- ...