Check out Kyoto Shogi, our featured variant for June, 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

Xiangqi: Chinese Chess. Links and rules for Xiangqi (Chinese Chess). (9x10, Cells: 90) (Recognized!)[All Comments] [Add Comment or Rating]
H. G. Muller wrote on Thu, Apr 24 05:17 PM UTC in reply to Fergus Duniho from 04:45 PM:

Can you post a screenshot? Initially I had problems too with pieces shifted to the right and partly leaving their cells, but this appeared to be due to a default padding in <div> element, which I now overrule with padding:0px.

There already is no-repeat for the background. ([Edit] That is for the cell background = piece image. But I guess you meant the board image. If that is not the same size as the Diagram something is wrong, which cannot be completely cured by a no-repeat. I now added the no-repeat, but would probably make more sense to add a backround-size:contain to scale the image so it will be diagram-filling. If a board rim with coordinates is requested the rimColor would cover any tiling anyway.)

For me it looks like this (FireFox on Win 7):

I already put replacing of the backgroundImage in the routines that are called by the auto-generated buttons, (TwitchDiag(diagramNr, whiteSet, blackSet)), and made nearly all parameters of the Diagram subject to the set=... lines that would make them conditional depending on the currently selected set. So it should now also be possible to use the auto-generated buttons for changing the board look.

To change piece sets would still require the piece names in the sets to be compatible. Or double definition of the entire collection of pieces in the different sets, only differing in image name.