lichess-org / chessground

Mobile/Web chess UI for lichess.org
https://lichess.org
GNU General Public License v3.0
1.03k stars 262 forks source link

Extensions to other board sizes #154

Closed eeegnu closed 3 years ago

eeegnu commented 3 years ago

I've been working on a simple chess variant, and really wanted to integrate chessground for the graphics. The board dimensions are slightly different being 14x8 instead of 8x8 (as seen below, the idea there just being that it wraps around as a cylinder.) Could anyone who's familiar with this code base let me know if such modifications would be very difficult to make, or if it's as simple as changing a few functions. Another thought was to have two chessgrounds superimposed over each other to create the extra rows, and to use some trickery in sending pieces to the right place, but I don't know just how complex that would be.

image

ornicar commented 3 years ago

We won't add anything to chessground that lichess.org doesn't use. You're welcome to fork it for your own needs.

eeegnu commented 3 years ago

I of course recognize this, I just wanted an opinion on if such a modification would entail a weeks long project, or a few hours long project.

niklasf commented 3 years ago

Maybe check out https://github.com/gbtami/chessgroundx. I haven't tried it, but it says:

Fork of https://github.com/ornicar/chessground Supports 5x5, 7x7, 8x8, 9x9, 10x8, 9x10 and 10x10 boards