Comments/Ratings for a Single Item
Since these pieces have all been updated, you can change graphicsDir and graphicsType to:
graphicsDir=../graphics.dir/alfaeriePNG/
graphicsType=png
This will provide better looking, anti-aliased graphics.
I want to make the Palace, River, and General face-to-face impossible of Xiangqi, But I don't know how to make it. Does anyone know how to make them?
(+ Does anyone know how to make defeat when two Generals face each other?)
The King-facing rule can be implemented by adding a fkR move to the King; k means a move that can only be used to capture royals.
There is no way to configure the Interactive Diagram for confinement zones (i.e. by specifying some additional parameters in the definition). This is mostly because I could not imagine a sufficiently flexible and easy way for specifying the zones, and what pieces should be confined to those. So instead I did make the Diagram script extendable by a user-supplied JavaScript function BadZone(file, rank, piece, color), which can return true (1) or false (0) depending on whether a move of the mentioned piece type (numbered as they appear in the Diagram's definition) to then mentioned square (file and rank counting starting at 0) should be forbidden.
By embedding such a function within <script> tags in the HTML page, the Diagram would automatically call it for verifying each move. You can see an example of it in the diagram I made for Xiangqi, at https://www.chessvariants.com/index/listcomments.php?id=33312 , when you ask your browser to show the Page Source of that page.
You can also see there how a user-supplied function Shade(file, rank) can be used to alter the coloration of the chess board (which by default would be checkered).
Thank you so much for your kind explanation. But can you elaborate on Badzone and Shade please? because i dont know how to make Badzone and Shade like you,,
Well, since your game is very much like Xiangqi as far as confinement is concerned, you could simply copy the BadZone and Shade routines from the mentioned Xiangqi page. And then adapt the tests on the file and rank coordinates x and y to your different board size. And the piece numbers of the pieces to be confined to the numbers they have in your piece table.
You could even start by copying them 'as is'. But you will see (if you specify different lightShade and darkShade) that the Palace will then not be in the location you want it, and that it might confine other pieces than you would want to be confined. You can then experiment a bit with the numbers in the routines that specify the Palace boundaries or piece types until you get what you want.
Actually, 千日手is not a Chinese term, it's Japanese term(せんにちて)(Sennichite). So in this case, the real Chinese term is 长将(Changjiang)
ah i fixed it !
Thank you !!
Great, you did it! I would recommend to use the 'ferz' image for the advisors, though, rather than the pawn image.
And one remark: wouldn't it be better to swap the Ox and Elephant in the initial position? It is likely that you would want to use the Ox to build a King fortress that is 'Cannon proof', as it cannot cross into the other half to be used for offensive purposes. In the current setup it would take two extra moves to get the Ox there, which is a bit annoying.
You put the Elephant and Rhino in a very unfavorable start location anyway; they have no moves before you move up a Pawn. And even then they would end up behind that Pawn, their forward moves blocked. I know this is the same for the Elephant in Janggi, but there you can more easily move Pawns, because these also move sideways on your own half. The Elephant and Rhino are very clumsy pieces; even the pure leapers (Zebra and Camel) are hard to manoeuvre because of their large stride. And that they are easily blocked, often on squares that block two moves at once, makes it far worse. So perhaps you should give them the most favorable starting location that is possible, making the back-rank Rook, Horse, Rhino, Elephant, Ox, Adviser, King, ...
It could go for Rook, Horse, Elephant, Rhino, Ox, Adviser, King,... also.
I guess you will have to find a balance between easy development of the Elephant and Rhino, and having the Pawns protected. If the Rhino can immediately develop to a square between the Pawns, it will fork 2 Pawns. So these must then not both be unprotected.
Perhaps the Rhino is too dangerous to allow quick development, and must just be used to protect its own Pawns.
I will probably replace one of the new pieces with something like Vao and make the Ox move 1 Space Diagonally personally but hey, my bad opinions. I think adding the new pieces is good anyways since it compliments the Knight and Ox.
I have approved this page, as it does its job well enough to be eligible. Sure, some improvements could be made, but for now it is good enough.
I'll fix it later ! Thanks !
Such improvements aren't necessary now that it is published, unless another Editor decides to un-publish it (though we do try to avoid having to do that) or you feel that they need to be made.
Also, just so you know, you can put an Interactive Diagram directly into the page if you set the Format field at the top of the Edit this Page form to "HTML," but that does require you to keep the page in HTML in order to not lose the diagram to the text editors' formatting. Or if you don't feel like doing that, a link to a Comment with the appropriate diagram works too.
17 comments displayed
Permalink to the exact comments currently displayed.
The setup diagram is inaccessible. Be sure to upload any graphics you use to this site and link to them from here. Graphics on other sites are out of our control and can be unreliable.