Check out Makruk (Thai Chess), our featured variant for March, 2025.


[ Help | Earliest Comments | Latest Comments ]
[ List All Subjects of Discussion | Create New Subject of Discussion ]
[ List Earliest Comments Only For Pages | Games | Rated Pages | Rated Games | Subjects of Discussion ]

Single Comment

Play-test applet for chess variants. Applet you can play your own variant against.[All Comments] [Add Comment or Rating]
💡📝H. G. Muller wrote on Sun, Dec 20, 2020 08:52 AM UTC in reply to Greg Strong from 12:19 AM:

I think the issue is probably that some of the abstract pieces are smaller than the square size.

Indeed, the Abstract images have variable size. The movepiece.js script copies their URL from cell content to background style, and apparently the default mode for background is to tile, starting in the upper-left corner.

This was easy to fix: in the loop that does the image copy I now also set the background-repeat and background-position styles to 'no repeat' and 'center center'. You would probably have to append a ?nocache=true parameter to the movepiece.js URL to make sure the new version is used.