Check out Omega Chess, our featured variant for September, 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 ]

Ratings & Comments

EarliestEarlier Reverse Order LaterLatest
Game Courier. PHP script for playing Chess variants online.[All Comments] [Add Comment or Rating]
🕸💡📝Fergus Duniho wrote on Sat, Apr 30, 2022 01:29 PM UTC in reply to H. G. Muller from 07:42 AM:

It works with the Alfaerie set. To work, it has to know the primary color of the piece. This is stored in the variable $originalwhite or $originalblack, and the value of each variable must match a color actually used in the image. I have set their values in the main body of the code for Abstract, Alfaerie, Magnetic, and Motif pieces, and I have set their values in individual set files for some other sets. I have thought about adding code that would identify the most common foreground color in each piece image, as it already goes through each image pixel by pixel to get the color indexes, but I'm not sure if this would be appropriate for some pieces, such as pieces with textured coloring from photographs.


H. G. Muller wrote on Sat, Apr 30, 2022 08:55 PM UTC in reply to Fergus Duniho from 01:29 PM:

The original alfaerie set should be considered obsolete now that we have alfaeriePNG, and its use should be discouraged. The anti-aliased version looks so much better. But the anti-aliasing causes pixels on the boundary of the black outline and the colored interior to be darker versions of the interior color, by mixing in the black. So simply looking for an exact match of the original color fails to replace the boundary pixels. This problem can be solved, though: you could test every pixel for the value of the briggtest RGB component, and deduce from that by which factor it is darkened compared to the interior color. And then darken the replacement color by the same factor. (This assumes the outline is pure black.) To make it resistant to multi-color originals you could even check whether the other two RGB components of the original are indeed similarly darkened (within some tolerance for rounding.)


🕸💡📝Fergus Duniho wrote on Sat, Apr 30, 2022 09:51 PM UTC in reply to H. G. Muller from 08:55 PM:

But the anti-aliasing causes pixels on the boundary of the black outline and the colored interior to be darker versions of the interior color, by mixing in the black. So simply looking for an exact match of the original color fails to replace the boundary pixels.

I already took that into consideration.

This problem can be solved, though: you could test every pixel for the value of the brightest RGB component, and deduce from that by which factor it is darkened compared to the interior color. And then darken the replacement color by the same factor.

Here's what I'm doing. I collect all the color indexes. For each color index with a non-zero alpha value, I make a determination of whether it belongs to the outline of a piece or to its coloring. I do that with this conditional:

if (color_diff(array($cv["red"], $cv["green"], $cv["blue"]), $original) 
<= color_diff(array($cv["red"], $cv["green"], $cv["blue"]), "black")*2) {

The color_diff function returns the greatest difference between one color's minimum component value and the other one's maximum component value. I added the *2 to prevent some errors, and that part now seems to be working well. If it belongs to its coloring, I recolor each RGB component with this function:

function recolor_component_as ($originalvalue, $currentvalue, $newvalue) {
    if ($originalvalue == 0)
        return $newvalue;
    return min(255,round($newvalue*($currentvalue/$originalvalue)));
}

One remaining problem is that when I try to color the Black pieces white, I get an aquamarine fringe around the Black Motif pieces. In this case, $originalvalue will be 255 for the red component and 0 for the green and blue components, and $newvalue will be 255 for all three components. So, it recolors some edge pixels with positive values for green and blue but with 0 for red, resulting in aquamarine. So, I might have to factor in the value of each component when deciding how to recolor each component. But when I tried that earlier, I got some undesirable results.


🕸💡📝Fergus Duniho wrote on Sat, Apr 30, 2022 10:03 PM UTC in reply to H. G. Muller from 08:55 PM:

But the anti-aliasing causes pixels on the boundary of the black outline and the colored interior to be darker versions of the interior color, by mixing in the black. So simply looking for an exact match of the original color fails to replace the boundary pixels.

I already took that into consideration.

This problem can be solved, though: you could test every pixel for the value of the brightest RGB component, and deduce from that by which factor it is darkened compared to the interior color. And then darken the replacement color by the same factor.

Here's what I'm doing. I collect all the color indexes. For each color index with a non-zero alpha value, I make a determination of whether it belongs to the outline of a piece or to its coloring. I do that with this conditional:

if (color_diff(array($cv["red"], $cv["green"], $cv["blue"]), $original) 
<= color_diff(array($cv["red"], $cv["green"], $cv["blue"]), "black")*2) {

The color_diff function returns the greatest difference between one color's minimum component value and the other one's maximum component value. I added the *2 to prevent some errors, and that part now seems to be working well. If it belongs to its coloring, I recolor each RGB component with this function:

function recolor_component_as ($originalvalue, $currentvalue, $newvalue) {
    if ($originalvalue == 0)
        return $newvalue;
    return min(255,round($newvalue*($currentvalue/$originalvalue)));
}

One remaining problem is that when I try to color the Black pieces white, I get an aquamarine fringe around the Black Motif pieces. In this case, $originalvalue will be 255 for the red component and 0 for the green and blue components, and $newvalue will be 255 for all three components. So, it recolors some edge pixels with positive values for green and blue but with 0 for red, resulting in aquamarine. So, I might have to factor in the value of each component when deciding how to recolor each component. But when I tried that earlier, I got some undesirable results.


🕸💡📝Fergus Duniho wrote on Sun, May 1, 2022 01:53 AM UTC:

In modifying the form for customizing the appearance of the board for an ongoing game, all form elements were disabled, and it took me a while to figure out what to do. That clued me in that it wasn't working in an intuitive manner. So I changed how it works. Instead of expecting you to choose the Custom theme before you can change the appearance of the game, any change to a form element for changing the appearance automatically changes the theme to Custom. As long as your theme remains set to Custom, the changes you make will be accepted. If you change your theme after starting to make custom changes, it will go with the theme and ignore the other values you set for changing the appearance. I added fields for choosing the color of Black and White pieces. However, I have not integrated these into themes.


🕸💡📝Fergus Duniho wrote on Sun, May 1, 2022 04:10 PM UTC:

I found some functions for converting between the RGB and HSL color spaces, and using them got rid of the problems I was having with making the Black Motif or Magnetic pieces white. However, using them to make the Black Alfaerie pieces white would turn them grey, and trying to make White pieces grey would leave them white. To avoid these problems, I had the function choose between the old RGB recoloring method and the new RGB->HSL->RGB recoloring method based on the relative luminosity of the two colors and on whether it was converted from a true color image. If the new color has a higher luminosity, and it was not converted from true color, it will use the new method. Otherwise, it will use the old method. In my tests, this seems to be working out for the Abstract, Alfaerie, Magnetic, and Motif pieces.


Sign in to the Chess Variant Pages. Sign in to the Chess Variant Pages.[All Comments] [Add Comment or Rating]
🕸📝Fergus Duniho wrote on Mon, May 2, 2022 06:03 PM UTC in reply to Máté Csarmasz from Wed Apr 20 07:51 AM:

All that verification checks is whether you can receive our email. If you can't, then marking your account as verified won't fix that. If you really want to receive emails about your moves, I recommend using a Yahoo account, as it accepts our emails better than Gmail does.


Lion (2). Moves on queen-lines but must jump exactly one piece. Appears in fairy chess problems.[All Comments] [Add Comment or Rating]
Jean-Louis Cazaux wrote on Mon, May 2, 2022 08:18 PM UTC:

The verb "to take" is confusing on this page. Once it used to mean "capture" which is common understanding I think.

But it is also written "a lion can move more squares after taking the `hurdle'". I believe that the lion is never capturing the hurdle. So, "after hopping the hurdle" would be more correct, except if I have misunderstood that move.


🕸📝Fergus Duniho wrote on Mon, May 2, 2022 09:16 PM UTC:

Judging by the diagram, this is the Korean version of the Leo, which combines the Cannon and Vao from Chinese Chess.


🕸📝Fergus Duniho wrote on Mon, May 2, 2022 10:00 PM UTC:

I have now updated this page.


Pandemonium (Surajang修羅場). Capablanca chess + Crazyhouse.[All Comments] [Add Comment or Rating]
💡📝Daphne Snowmoon wrote on Tue, May 3, 2022 05:37 PM UTC:

I Fixed a typo

Pawn : Moves one square orthogonally forward

->

Pawn : Moves one square orthogonally forward or sideways


Leo. Moves on queen lines, but must jump once when taking.[All Comments] [Add Comment or Rating]
Jean-Louis Cazaux wrote on Tue, May 3, 2022 08:41 PM UTC:

I found an interesting source. Encyclopedia of Chess Problems.-Milan Velimirovic Kari Valtonen.2012-Comprimido

in:

https://fr.scribd.com/document/536275573/Encyclopedia-of-Chess-Problems-Milan-Velimirovic-Kari-Valtonen-2012-comprimido

p96, the entry "Chinese pieces" says "introduced to a wider European publicity by P.Seyfert-Bitterfeld in the February 1936 issue of Die Schwalbe".

Also of interest the French book Le Guide des échecs, Traité complet" by Nicolas Giffard and Alain Biénabe (sadly passed away in 2021, see https://www.echecs64.com/2021/02/28/deces-du-problemiste-alain-bienabe/ ) has a very strong part dedicated to Fairy Chess (I don't know something as complete in English) written by Biénabé. Page 1200 it presents the family of Chinese pieces and says (my translation):

These pieces were "discovered" (from Chinese chess) by P.Seyfert in 1936, but it is T.R. Dawson who gave their first noble letters to this family!

According to British Chess News, https://britishchessnews.com/2019/12/16/remembering-thomas-rayner-dawson-28-xi-1889-16-xii-1951/ Leo (and Vao) had been invented in 1912.


Ironhouse. Members-Only Full tamerlane chess + Makruk + Shogi Pawns and Cannons. (11x10, Cells: 110) [All Comments] [Add Comment or Rating]

Since this comment is for a page that has not been published yet, you must be signed in to read it.

Since this comment is for a page that has not been published yet, you must be signed in to read it.

Since this comment is for a page that has not been published yet, you must be signed in to read it.

Very Heavy Chess. A lot of firepower with all compounds of classical chess pieces.[All Comments] [Add Comment or Rating]
💡📝Jean-Louis Cazaux wrote on Wed, May 4, 2022 08:56 AM UTC:

I have abandoned the name of Templar for the BKN, because Templar is used in other variants with other moves. I have adopted Popess which seems unused (although I wouldn't be surprised to be wrong).

For fun, Bikini would have been a possible alternative too.


Ironhouse. Members-Only Full tamerlane chess + Makruk + Shogi Pawns and Cannons. (11x10, Cells: 110) [All Comments] [Add Comment or Rating]

Since this comment is for a page that has not been published yet, you must be signed in to read it.

Since this comment is for a page that has not been published yet, you must be signed in to read it.

Since this comment is for a page that has not been published yet, you must be signed in to read it.

Since this comment is for a page that has not been published yet, you must be signed in to read it.

Since this comment is for a page that has not been published yet, you must be signed in to read it.

Very Heavy Chess. A lot of firepower with all compounds of classical chess pieces.[All Comments] [Add Comment or Rating]
🕸Fergus Duniho wrote on Wed, May 4, 2022 04:33 PM UTC in reply to Jean-Louis Cazaux from 08:56 AM:

There are a few problems with the name Popess:

  1. Unless you're counting Pope Joan, there has been no such thing.
  2. Presumably, there would be only one Popess if there were one, because it would be a female Pope, but your game gives each player two of them.
  3. The word derives from a word meaning father. Presumably, the word for a female equivalent of a Pope should derive from a word for mother.

Here are some possible alternatives:

  • Mother Superior - the highest rank reached by nuns in the Catholic Church.
  • High Priestess - a common term for a high ranking female cleric, and it is used in the major arcana of the Tarot.
  • Bokononess - a made-up word formed from the name of a fictional religion portrayed in Kurt Vonnegut's novel Cat's Cradle.

Kevin Pacey wrote on Wed, May 4, 2022 06:10 PM UTC:

I'd note High Priestess is used for a different piece type than BNW, in a number of CVs invented years ago by Joe Joyce that are still played on Game Courier now and then.

For BNW some years ago I thought up 'Freemason' (made it to wiki on Fairy Pieces, somehow). Historically the name could arguably be extended back to masonry. Freemasonry also includes a religious element to it, a Google search revealed. Main reason I picked the name was that it begins with 'F', which no other piece type in my Sac Chess CV started with. [edit: I picked 'Ship' for RNF since RF I called Sailor, and I'd use 'H' as its initial]. However a drawback is that Ship is used for many piece types/CVs, I later learned.

Somewhere in CVP's Man and Beast piece articles Charles Gilman long ago offered different names for BNW and RNF types than any mentioned in this thread. I like the name that Very Heavy Chess uses for RNF.


New Grand Apothecary Chess Error.[Subject Thread] [Add Response]
Aurelian Florea wrote on Wed, May 4, 2022 06:32 PM UTC in reply to Aurelian Florea from Fri Apr 22 06:56 AM:

@HG,

I have asked you a question earlier on this post. May you take a look?


Very Heavy Chess. A lot of firepower with all compounds of classical chess pieces.[All Comments] [Add Comment or Rating]
🕸Fergus Duniho wrote on Wed, May 4, 2022 07:10 PM UTC:

Another suggestion I would make is Baroness. It has the B for Bishop, the N for Knight, and while it lacks a K, it is a royal title, and it has an R for roi, the French name for the King.


25 comments displayed

EarliestEarlier Reverse Order LaterLatest

Permalink to the exact comments currently displayed.