Check out Janggi (Korean Chess), our featured variant for December, 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 ]

Comments/Ratings for a Single Item

Earlier Reverse Order Later
Maasai Chess. Play Maasai Chess with Game Courier.[All Comments] [Add Comment or Rating]
💡📝Jean-Louis Cazaux wrote on Tue, May 11, 2021 09:12 PM UTC:

I wish I could use the Alfaerie icon for the Sergeant for the Maasai on ranks 3 instead of the one I used instead but I don't know how to do it.


Greg Strong wrote on Wed, May 12, 2021 10:26 PM UTC in reply to Jean-Louis Cazaux from Tue May 11 09:12 PM:

I wish I could use the Alfaerie icon for the Sergeant for the Maasai on ranks 3 instead of the one I used instead but I don't know how to do it.

I have added the Sergeant to the piece set with notation "st" but you can still use it with the current "t" notation.  Just add the following code to the beginning of the pre-game section:

setsystem groupsets array alfaerie-metamachy;
set mypieces ();
foreach label (a A b B c C d D e E f F g G h H i I j J k K l L m M n N o O p P q Q r R s S t T u U v V w W x X y Y z Z):
  setelem mypieces #label pieceimg #label;
next;
if == pieceset alfaerie-metamachy:
  set mypieces.t pieceimg st;
  set mypieces.T pieceimg ST;
endif;
setsystem pieces #mypieces;

You case see it in action here:

https://www.chessvariants.com/play/pbm/play.php?game%3DMaasai+Chess%26settings%3Dgs_test

Please note that after you change your preset, you will need to refresh the page or clear you cache before you see the game on the preview screen.  But if you start moving pieces, you should see the new graphics.


💡📝Jean-Louis Cazaux wrote on Fri, May 21, 2021 06:19 AM UTC in reply to Greg Strong from Wed May 12 10:26 PM:

Thank you Greg, this works very fine.

I was wondering that maybe the most practical would be to have a table of all SVG Alfaerie, each one defined with 2 letters, which will give 26^2 possibilities, a very confortable number. Then each designer would be able to pick up the ones he needs using a code like the one you posted here.

Maybe it is already your idea, or something similar.


🔔Notification on Wed, Jan 17 08:03 PM UTC:

The author, Jean-Louis Cazaux, has updated this page.


4 comments displayed

Earlier Reverse Order Later

Permalink to the exact comments currently displayed.