oakmac / chessboardjs

JavaScript chessboard
https://chessboardjs.com
MIT License
2k stars 406 forks source link

Create boards smaller than 8x8 (based on ivan444 works) #224

Closed slolo2000 closed 2 years ago

slolo2000 commented 3 years ago

Add the possibility to support boards smaller than 8x8 for games similar to chess or for creating puzzle for young players It's also possible to create a non-squared board.

The behavior is controller by a config params: numRows: int numColumns: int

Example: var boardConfig = { position: '6/p5/k5/b1Q3/4qN/RK4 w - - 1 1', showNotation: true, numRows: 6, numColumns: 6 } board = Chessboard('myBoard', boardConfig);