Check out Glinski's Hexagonal Chess, our featured variant for May, 2024.


[ 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

Home page of The Chess Variant Pages. Homepage of The Chess Variant Pages.[All Comments] [Add Comment or Rating]
🕸📝Fergus Duniho wrote on Thu, Nov 16, 2023 10:02 PM EST in reply to Fergus Duniho from Wed Nov 15 10:04 PM:

I have found a solution to the red pieces showing up as white on my Kindle without recoloring any image files. I first got it to work with Game Courier and the Diagram Designer, and now it also works with Interactive Diagrams. However, Interactive Diagrams will have to be edited individually to apply the solution.

The general solution tests whether the User Agent string matches a brand name of some of the most popular ereading devices. In my case, I have confirmed that my Kindle has "Kindle" in the User Agent string, and my Likebook Mars has "Likebook" in it, and tests with Game Courier show that it is correctly recognizing these devices. When it displays a piece whose file name begins with "b" or "B" on a recognized eink device, it changes the piece color to #808080. This is a medium grey that works about equally well on the Kindle, which displays #FF0000 as white, and my Likebook Mars, which displays #FF0000 as black.

On the Ultima page, I have changed the value of graphDir for the Abstract set to '/play/pbm/showpiece.php?originalcolor=ff0000&image=/graphics.dir/abstract/new/'. The originalcolor value is required for recoloring a piece, but this value is true only for the black pieces. With the wrong value for the white pieces, they simply won't be recolored. The image value is the actual directory where the images are found. It comes at the end, because this will be concatenated with the prefix and the rest of the file name to form the complete file name.

Incidentally, my fitness tracking watch told me that I had completed 10,000 steps today while sitting here typing. Maybe it interpreted typing action as walking.