Comments by ChessShogi
Now GC's legal moves aren't displaying for some pieces in the GC presets that display legal moves.
Edit: GC legal move highlights are working again.
GC preset legal move highlights work correctly now.
However, now you can't edit comments you are the author of.
Edit: it works now.
GC presets are not displaying at all now.
Edit: The presets will only load when an invitation to play a game has yet to be accepted. or when the preset was authored by Fergus Duniho.
It seems it's now impossible to delete a submission, even when said submission is completely empty (which is the normal requirement for using the deletion script). I temporarily revived Mitsugumi-Shogi to get an introduction for Mitsugumi Shogi's new page from one of the old page's revisions and then emptied the old page's contents. I then tried to delete it, but that didn't work.
If I could have an editor delete my Mitsugumi-Shogi submission that would be great. Note the hyphen in between "Mitsugumi" and "Shogi"!
Hope this game can be retrieved as it's the one I'm not losing in!
I think it's more a problem of the preset not loading at all rather than a problem of retrievability. The game should still be in the database.
I have a broken game (Modern Makruk).
The game isn't broken. The preset is not loading. I had the same problem when trying to update Mitsugumi Shogi's preset.
GC presets are working again.
The deletion script for submissions is still not working properly though.
The GC preset is no longer up to date. I still need to work out the kinks of the contagious promotions.
I have fixed the GC preset's contagious promotions and clarified the rules for contagious promotions as well.
I cannot delete a submission that I want to delete, even though said submission is empty. I temporarily revived it (the old Mitsugumi Shogi page) to get something for the new page and then tried to delete the former, but the delete script doesn't work.
Edit: Now it is impossible to update a submission to an empty page, which is a requirement for deletion.
I've been working on reviving this game (and Mitsugumi Shogi), and pretty much everything is done, but I am not sure how I should handle trading of the Fire Demons in these games to keep them exciting. Such rules don't really matter in Tenjiku Shogi, as the Tenjiku Fire Demon burns every adjacent enemy piece every time it moves, and even on the opponent's turn, so you can easily get several pieces for the price of one. In Suzumu Shogi (and Mitsugumi Shogi), the Fire Demon moves like a Free Boar with an additional area move and can optionally shoot one adjacent piece, either without moving or after it stops, and has no passive burn (XBetza: shQshympacabQ(a)2KmcabK(a)2mpacabK). In other words, the Suzumu Fire Demon's burning move is much weaker, potentially requiring rules to conserve it until the very end of the game.
I thought about implementing Chu Shogi-style rules for this, but they don't really work for a piece like the Suzumu Fire Demon. I then thought about implementing Maka Dai Dai Shogi's contagious promotion rules as well, but I worried that it would make the Fire Demons too survivable.
Right now I have a more limited contagious promotion rule in place which only affects direct captures of a Fire Demon or Heavenly Tetrarch from pieces that are not (potential) royals. I also gave the Suzumu Fire Demon's burning ability to the Heavenly Tetrarch. The former ensures that at least one Demon/Tetrarch survives, and the latter makes the Chariot Soldier more dangerous to make up for the weakened burning move. I think these changes work quite well, but I still want an outside opinion on this to make sure I am dealing with this issue the right way.
Quick question: Does the diagram AI take into consideration the highlight restrictions from the BadZone function? I was thinking about reviving Suzumu Shogi and adding a rule forbidding pieces that burn from burning each other, and I have successfully defined a BadZone function to enforce it in the move highlights, but I worry that it won't be take into consideration by the AI. I tested it on my own interactive diagram, and it seems to work.
What should I use if I want to test for past and potential captures and have captures of certain pieces always return false in a function definition?
I know how to do it for general captures.
cond empty #0 capture (not empty #1)
Perhaps this?
cond empty #0 (not match old FD +WB +CS) (not match space #1 FD +WB +CS)
I think there's a problem with the current preset. The knights aren't able to move sideways or backwards.
Thanks for catching that. I will fix that right away.
I've decided that the contagious promotions made the Fire Demons too survivable, and instead went with a rule that prevents Fire Demons and Heavenly Tetrarches from burning each other. That way trades can still happen, but it's not super easy to do so. And because of the high number of pieces that promote to these two juggernauts (4 Chariot Soldiers and 2 Water Buffalos per side), and the fact that they start in very survivable positions, there will likely be at least one such piece left when the board is depleted enough that said piece can take advantage of holes in the opponent's defenses.
Recently I revived Suzumu Shogi and Mitsugumi Shogi and added a rule to them forbidding burning pieces (Fire Demons and Heveanly Tetrarches) from burning each other. To enforce this in the GC presets, in theory all I need to do is, on the burning move, make sure that the capture (past and potential) doesn't equal those pieces in the relevant function definitions.
If I need to test for a general capture in this situation, that is pretty easy: cond empty #0 capture (not empty #1). By extension, for ensuring a burning piece isn't captured I would, in theory, need to use cond empty #0 (not match old FD +WB +CS) (not match space #1 FD +WB +CS) in the part of the piece function used for the burning moves. The "FD +WB +CS" part is the ids of the burning pieces.
The second output for the cond statement works fine, but the first doesn't. I think what I need is something that will return the value of old at the time the function is called.
Here is the preset link for Suzumu Shogi in case you need to look at the code: Suzumu Shogi on the Chess Variants Game Courier
So perhaps I just need to put sub FD #0 #1 after the test (I tend to forget GC executes from right to left)?
Edit: That didn't work. I guess I'll just stick to the tried and true method of using the bpromote and wpromote subroutines for the actual rule enforcement.
I am curious though: if you use old in a function definition, does it return the value at the time of the function definition or the function call?
For some reason, when promoChoice is set to + for Shogi-style promotions, the piece names in the table don't show the promoted version when clicked a second time.
Edit: This is only true for the table that shows the selected piece.
The problem was fixed when you fixed the piece promotion not showing. The extra satellite functionality for user defined functions is also quite nice.
Apparently, the site will not allow you to have an empty submission, which is required for the deletion script to work.
Suzumu Shogi and Mitsugumi Shogi (Rules pages and GC preset pages) are ready.
The Heavy Shako GC preset page is also ready.
Mitsugumi-Shogi (Note the hyphen!!!) can be deleted.
That's what the Revisions page is for (in the top menu, Edit -> N revisions). Click the revision you want to select, press Ctrl-U to view the source code. You can then copy the relevant HTML sections into the editors in the Edit Page form.
I hope triple captures besides those of the Lion Dog become a thing in the future. Perhaps by using two additional variables ex2 and ey2? It shouldn't be too hard, at least for updating the functions that use the variables for the move coords to use the and updating the code for highlights, though I could be wrong. If it becomes too complicated for the AI there's always the enableAI=0 option.
That's perfect! Now that that's done, I can test a double-burning Suzumu Fire Demon.
Also, for some reason the Comments section is excessively narrow when viewed from the interactive diagram page.
Now that triple captures other than those of the Lion Dog are supported by the interactive diagram, I am currently testing a new version of Suzumu Shogi, with burning pieces (Fire Demons and Heavenly Tetrarches) that can burn (or capture without moving as in igui) up to two adjacent pieces at once.
25 comments displayed
Permalink to the exact comments currently displayed.
The main problem is that when rendering boards using PNG Image. JPG Image, or GIF Image, the board is smaller than the hitboxes for selecting squares, causing the highlights on the board to become misaligned with the board image.
As for the board size, I think the best option is to have something for disabling fitting the board to the screen in the GC Edit Preset Form (which is off by default).