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

EarliestEarlier Reverse Order Later
Shatranj. The widely played Arabian predecessor of modern chess. (8x8, Cells: 64) (Recognized!)[All Comments] [Add Comment or Rating]
Daniel Zacharias wrote on Tue, Mar 7, 2023 03:22 PM EST in reply to Fergus Duniho from 01:51 PM:

You could try copying the black pieces behind the white ones to provide the fill color.


🕸📝Fergus Duniho wrote on Tue, Mar 7, 2023 04:08 PM EST in reply to Daniel Zacharias from 03:22 PM:

You could try copying the black pieces behind the white ones to provide the fill color.

No, that's a kludge I would rather avoid.


Daniel Zacharias wrote on Tue, Mar 7, 2023 05:43 PM EST in reply to Fergus Duniho from 04:08 PM:

How are these?


🕸📝Fergus Duniho wrote on Tue, Mar 7, 2023 07:06 PM EST in reply to Daniel Zacharias from 05:43 PM:

They appeared to have no bleed-through, but they wouldn't recolor. So, I went ahead with what was working. Taking a variation on your suggestion, I was isolating the part of the path that drew the outline and placing it before the path that drew the image with a color of #f9f9f9. This worked for most pieces. For the Ferz, I couldn't isolate the path due to it relying on m rather than M too much, as it is easier to isolate segments of a path when it is using absolute values. I tried the same thing with the Pawn, but it didn't work. Instead of drawing an outline and carving out sections, it was drawing the right side as a single path then drawing the left side as a single path. So, I couldn't isolate any part of the path for drawing the outline. At this point, every piece is recoloring without bleed-through except for the Pawn.


Daniel Zacharias wrote on Tue, Mar 7, 2023 07:26 PM EST in reply to Fergus Duniho from 07:06 PM:

Ok, I don't know how exactly you need them set up to be recolorable. What I did in the latest ones was insert white sections exactly corresponding to the gaps. That might be as far as I know how to go with this.


🕸📝Fergus Duniho wrote on Tue, Mar 7, 2023 08:13 PM EST in reply to Daniel Zacharias from 07:26 PM:

For the Pawn, I took your new Pawn and changed the fill color from #ffffff to #f9f9f9 to make it recolorable, and it is now working without bleed-through. Thanks.

Sorry, no, it's not. I need to get the outline shape of the Pawn and put it ahead of the main drawing of the Pawn in the SVG.


🕸📝Fergus Duniho wrote on Tue, Mar 7, 2023 09:54 PM EST in reply to Fergus Duniho from 08:13 PM:

Through trial and error I placed a polygon and a circle ahead of the drawing of the Pawn. While it's not a perfect outline of the Pawn, it covers all the interior parts, which is good enough. So, now the Pawn is finally free of bleed-through.


Daniel Zacharias wrote on Tue, Mar 7, 2023 11:12 PM EST:

The text by the diagrams looks weird when it reflows so that just one line comes below the images.


David Paulowich wrote on Thu, Oct 24 05:58 PM EDT:

Way back on March 8, 2005 I posted a Zillions file for a Shatranj game ending in a blockade stalemate after twenty moves. Four days ago I posted a seventeen move blockade stalemate on the (standard) CHESS page. It now looks like sixteen moves is the shortest possible Shatranj example. H. G. Muller has posted an applet in the Shatranj Comments (May 3, 2021). Clicking "Play it!" and copypasting the game below will show all the moves.

diagram

1. a3 a6 2. Nc3 a5 3. Be3 a4 4. Ra2 Ra6 5. Kc1 Rf6 6. Kb1 Rxf2 7. Ka1 Rxg2 8. Nf3 Rxh2 9. Qf2 Rxf2 10. Bh3 Rxf3 11. Rb1 Rxh3 12. Bc1 Nf6 13. d3 Rxd3 14. Ne4 Nxe4 15. c3 Rxc3 16. e3 Rb3 stalemate victory for Black.


H. G. Muller wrote on Fri, Oct 25 02:31 AM EDT in reply to David Paulowich from Thu Oct 24 05:58 PM:

Note that it is possible to pre-load an Interactive Diagram with a game, through the parameter moveList. This would save the reader the trouble of copy-pasting the game into the Diagram.

So a Shatranj Diagram with the extra line

moveList=1. a3 a6 2. Nc3 a5 3. Be3 a4 4. Ra2 Ra6 5. Kc1 Rf6 6. Kb1 Rxf2 7. Ka1 Rxg2 8. Nf3 Rxh2 9. Qf2 Rxf2 10. Bh3 Rxf3 11. Rb1 Rxh3 12. Bc1 Nf6 13. d3 Rxd3 14. Ne4 Nxe4 15. c3 Rxc3 16. e3 Rb3

would enable the reader to start navigating through the game immediately, by using the button bar in the AI panel opened by the Play It! link. Like below:

satellite=shat promoZone=1 promoChoice=Q graphicsDir=/graphics.dir/utrechtPNG/ whitePrefix=W blackPrefix=B graphicsType=png squareSize=50 darkShade=#FFFFFF symmetry=mirror stalemate=win baring=0 moveList=1. a3 a6 2. Nc3 a5 3. Be3 a4 4. Ra2 Ra6 5. Kc1 Rf6 6. Kb1 Rxf2 7. Ka1 Rxg2 8. Nf3 Rxh2 9. Qf2 Rxf2 10. Bh3 Rxf3 11. Rb1 Rxh3 12. Bc1 Nf6 13. d3 Rxd3 14. Ne4 Nxe4 15. c3 Rxc3 16. e3 Rb3 Pawn::fmWfcF:Pawn:a2-h2 Ferz:Q::General:e1 Elephant:B:A:Elephant:c1,f1 Knight:N:::b1,g1 Rook::::a1,h1 King::K::d1

HaruN Y wrote on Sat, Oct 26 02:21 AM EDT in reply to H. G. Muller from Fri Oct 25 02:31 AM:

Does this mean I can create an Interactive Diagram for Chess but the King in check cannot travel?

Edit: It does!


H. G. Muller wrote on Sat, Oct 26 02:36 AM EDT in reply to HaruN Y from 02:21 AM:

Does this mean I can create an Interactive Diagram for Chess but the King in check cannot travel?

Not sure what the 'this' in your message refers to.


HaruN Y wrote on Sat, Oct 26 02:43 AM EDT in reply to H. G. Muller from 02:36 AM:

Petrifying Check Chess

King in check can't travel. Castling is illegal.

files=16 ranks=8 promoZone=1 promoChoice=NBRQ graphicsDir=/cgi-bin/fen2.php?s=50&w=1949e7&b=b5e725&p= squareSize=50 graphicsType= royal=K moveList=1. Rxa4 Rxa5 2. Rxb4 Rxb5 3. Rxc4 Rxc5 4. Rxd4 Rxd5 5. Rxe4 Rxe5 6. Rxf4 Rxf5 7. Rxg4 Rxg5 8. Rxh4 Rxh5 9. Rxh3 Rxh6 10. Rxg3 Rxg6 11. Rxf3 Rxf6 12. Rxe3 Rxe6 13. Rxd3 Rxd6 14. Rxc3 Rxc6 15. Rxb3 Rxb6 16. Rxa3 Rxa6 17. Rxa2 Rxa7 18. Rxa1 Rxa8 19. a2 a7 20. jxb2 jxb7 21. Nxb1 Nxb8 22. kxc2 kxc7 23. Bxc1 Bxc8 24. lxd2 lxd7 25. Qxd1 Qxd8 26. pxh2 pxh7 27. Rxh1 Rxh8 28. oxg2 oxg7 29. Nxg1 Nxg8 30. nxf2 nxf7 31. Bxf1 Bxf8 32. mxe2 mxe7 33. Kxe1 Kxe8 borders=0 firstRank=1 rimColor=#f5f5db holeColor=#f5f5db darkShade=#527e5b lightShade=#7e9491 coordColor=#f5f5db hole::::i1-p1,i2-p2,i3,j3,k3,l3,m3,n3,o3,p3,i4,j4,k4,l4,m4,n4,o4,p4,j5,k5,l5,m5,n5,o5,p5,i6,j6,k6,l6,m6,n6,o6,p6 pawn:P:fmW*fceFiDXX:pawn:i2,j2,k2,l2,m2,n2,o2,p2,,i7,j7,k7,l7,m7,n7,o7,p7 knight:N:NiDXX:knight:j1,o1,,j8,o8 bishop:B:BiDXX:bishop:k1,n1,,k8,n8 rook:R:RiDXX:rook:p1,i4,,i5,p8 queen:Q:QiDXX:queen:l1,,l8 king:K:cKiiKiDXX:king:m1,a5,b5,c5,d5,e5,f5,g5,h5,a6,b6,c6,d6,e6,f6,g6,h6,a7,b7,c7,d7,e7,f7,g7,h7,a8,b8,c8,d8,e8,f8,g8,h8,

Has this been invented before?


H. G. Muller wrote on Sat, Oct 26 03:37 AM EDT in reply to HaruN Y from 02:43 AM:

I don't get it. The Diagram is preloaded with a long game, which seems to consist exclusively of illegal moves. When not shown in isolation something goes disastrously wrong (probably because it then uses betzaNew.js from a later Diagram in the Comment listing), and Kings appear everywhere.

What is the purpose of all the holes? Why iiK?

The Diagram as defined would not do what the title suggests: check has no effect on its ability to move at all. It can move from e1/e8 even when in check, and cannot move without capture elsewhere even when in check.

I also don't understand what it has to do with Shatranj...

[Edit] OK, I see: the pre-loaded game tries to capture all the Kings. For some reason this doesn't work with betzaNew.js. You try to make use of the fact that initial moves on royals are forbidden when in check. Inventive, but awful.

[Edit2] Pre-loading games doesn't appear to be Diagram-specific, so it tries to pre-load the wrong game when not viewed in isolation.

[Edit3] The latter is now fixed; it was caused by the fact that the game specified with moveList was loaded with a delay, like it was pasted, but by that time another Diagram on the same page could already be the 'active' one. The script now first sets the active Diagram to the one it uses the move list of.


14 comments displayed

EarliestEarlier Reverse Order Later

Permalink to the exact comments currently displayed.