This is a fork of the react chessboard project which supports an expandable chessboard. It supports a new fen, I have horribly named modified fen which supports this expandable chessboard requirement
I have introduced a FEN string modification to support my requirement of an expanding board.
- The board should be able to expand from the original 8x8 board 1 square at a time
- Pieces should be able to occupy any of the newly created squares
Normal FEN looks like this
rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR
I have introduced a few new special characters
Character | Description |
---|---|
# | This character should show up at the starting of the row defining the 8th rank |
$ | This character should show up before the character on the a file |
E | This character simply a non existent square. The purpose of this character is to disambiguate square with no piece and empty space |
8/#rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR
#rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR/8
#1$rnbqkbnr/1$pppppppp/1$8/1$8/1$8/1$8/1$PPPPPPPP/1$RNBQKBNR
#$rnbqkbnr1/$pppppppp1/$9/$9/$9/$9/$PPPPPPPP1/$RNBQKBNR1
2EEEEE1/#rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR
I know its a horrible name, I should have named it something like expandFen or fenPlus, but I am too lazy to change all occurances of it in my code.