Check out Glinski's Hexagonal Chess, our featured variant for May, 2024.


[ Help | Earliest Comments | Latest Comments ]
[ List All Subjects of Discussion | Create New Subject of Discussion ]
[ List Latest Comments Only For Pages | Games | Rated Pages | Rated Games | Subjects of Discussion ]

Comments/Ratings for a Single Item

LatestLater Reverse Order EarlierEarliest
Game Courier. PHP script for playing Chess variants online.[All Comments] [Add Comment or Rating]
Greg Strong wrote on Sat, Mar 27, 2021 11:42 PM UTC in reply to Jean-Louis Cazaux from 12:59 PM:

Sure, email me the graphics and what you would like the notation to me and I'll make the piece set.

P.S. Sorry I haven't gotten around to updating the graphics in the Cazaux piece set, but I will get to it at some point.


Jean-Louis Cazaux wrote on Sat, Mar 27, 2021 12:59 PM UTC:

I have prepared a set of 16 icons to make a set of pieces for Jetan-of-Barsoom. Could an editor help me in making a set I could use to play this preset? Thanks a lot


Jean-Louis Cazaux wrote on Thu, Mar 11, 2021 07:18 PM UTC in reply to Fergus Duniho from 06:39 PM:

Thank you for the explanations and the correction. Now it works fine.


🕸💡📝Fergus Duniho wrote on Thu, Mar 11, 2021 06:39 PM UTC in reply to Jean-Louis Cazaux from 05:50 PM:

What is the function of the "tag"?

It's a crowd-sourced categorization method. Members tag pages, and we can browse through pages that share the same tag.

There is a tag "Jamison" on the preset of TerachessII.

No, that tag is on Game Courier itself. I should probably add the ability for editors to weed out inappropriate tags.

Is it because of that my saving is failing?

No, it's completely unrelated. See my previous comment on this page.


🕸💡📝Fergus Duniho wrote on Thu, Mar 11, 2021 06:32 PM UTC in reply to Daniel Zacharias from 05:54 PM:

I just tried saving a change to a different preset and it didn't work either

That should now be corrected. PHP runs as apache, but I had changed the owner of all files on the site to chessvariants. I added code to give any new settings file the permissions 0777, and I did a chmod on all existing settings files to make their permissions 0777. So, now apache will be able to write to files owned by chessvariants.


Daniel Zacharias wrote on Thu, Mar 11, 2021 05:54 PM UTC in reply to Jean-Louis Cazaux from 05:50 PM:

I just tried saving a change to a different preset and it didn't work either


Jean-Louis Cazaux wrote on Thu, Mar 11, 2021 05:50 PM UTC:

What is the function of the "tag"? There is a tag "Jamison" on the preset of TerachessII. Is it because of that my saving is failing?


Jean-Louis Cazaux wrote on Thu, Mar 11, 2021 08:39 AM UTC:

I have a problem with the Preset of Terachess II The White Missionary (Y) cannot move. I just need to add a "Y" in a string in Post-Move 1, I edited the file and added that character, but when I save it says it failed. Can someone help me?


Jamison Painter wrote on Wed, Feb 24, 2021 03:26 AM UTC:

Sorry about my first move. It was illegal. I didn't count right! We are playing where a piece has to move the full amount of alloted squares, although most pieces can do so in any direction or combination.


Daniel Zacharias wrote on Sat, Feb 20, 2021 01:21 AM UTC in reply to Fergus Duniho from Fri Feb 19 03:17 AM:

The only thing I can think of is that both presets used empty. Could that be the problem?


🕸💡📝Fergus Duniho wrote on Fri, Feb 19, 2021 03:17 AM UTC in reply to Daniel Zacharias from Thu Feb 18 10:12 PM:

It seems like a similar problem to this other preset I made where I'm unable to edit anything https://www.chessvariants.com/play/pbm/play.php?game=Decimate&settings=test

When I looked into that one, I checked the error.log, noticed it was trying to load the file "sets/.php", and then went back and noticed that the Set field in the form was not set. I set it to Alfaerie: Many, but when I changed the group to Unique, the set switched to Alfaerie: All SVG. In sets.php, I noticed that Alfaerie: All SVG was not assigned a group. So, I assigned it to Unique and reloaded the page. But when I selected Alfaerie: Many and changed the group to Unique, it still changed it to Alfaerie: ALL SVG. I couldn't figure out why that is happening, but when I saved a test version of your preset with the set set to Alfaerie: ALL SVG, it at least displayed the board instead of giving me a blank screen, but it did not display anything further. When I added "&submit=Edit" to the query string, I saw that the change I made had been saved. For one further test, I deleted the Pre-Game code and saved it again. This time, it did not give me any problem. So, there may be something in your code that is not parsing properly or something.

This is what I cut into the clipboard:

alias E A e a W D w d H .WA h .wa G .H3 g .h3 C+ CW N+ NW c+ cw n+ nw E+ BD e+ bd W+ RW w+ rw;

empty c5 c6 d5 d6 e5 e6 f5 f6 g5 g6 h5 h6;
dump;

Daniel Zacharias wrote on Thu, Feb 18, 2021 10:12 PM UTC in reply to Fergus Duniho from 09:11 PM:

I tried editing it but the run, save, test, and update buttons just go to a blank page now. When I was able to test it all the other pieces seemed to work correctly.

EDIT

I still had the tab open where I was making the preset and I was able to edit it from there somehow and I think I fixed the problem. I still don't understand why, but I had to add a check to make sure the king wasn't jumping to his own starting square.

But I'm still unable to make any changes using "&submit=Edit"

It seems like a similar problem to this other preset I made where I'm unable to edit anything https://www.chessvariants.com/play/pbm/play.php?game=Decimate&settings=test

EDIT2

I think I solved that too actually. It was something about the piece set being unselected somehow so I had to change the set group and change it back and select the right piece set again and it works.


🕸💡📝Fergus Duniho wrote on Thu, Feb 18, 2021 09:11 PM UTC in reply to Daniel Zacharias from 08:28 PM:

The problem is that the king can still jump out of check. I saved it again after enabling the call to the checked subroutine and now it doesn't work

It's giving me a 503 error when I try to access it. You can still edit it by appending "&submit=Edit" to the query string. Since the checked subroutine calls the functions for the pieces on the board, you should make sure these functions are all working correctly.


Daniel Zacharias wrote on Thu, Feb 18, 2021 08:28 PM UTC in reply to Fergus Duniho from 08:06 PM:

The problem is that the king can still jump out of check. I saved it again after enabling the call to the checked subroutine and now it doesn't work


🕸💡📝Fergus Duniho wrote on Thu, Feb 18, 2021 08:06 PM UTC in reply to Daniel Zacharias from 07:59 PM:

I just tried your preset, and it appeared to be working. If a particular move isn't working, you can let me know what it is.


Daniel Zacharias wrote on Thu, Feb 18, 2021 07:59 PM UTC in reply to Fergus Duniho from 07:52 PM:

Ok, I've saved the preset here /play/pbm/play.php?game%3DTiger+Chess%26settings%3Dtiger

I'm including the fairychess file so I think the checked subroutine should be available, and it's called elsewhere without problems.

The same problem happens if I modify the Apothecary Chess-Modern preset by only removing the lines restricting the king to leaping to the back rank.


🕸💡📝Fergus Duniho wrote on Thu, Feb 18, 2021 07:52 PM UTC in reply to Daniel Zacharias from 04:03 AM:

// and not sub checked #0 If this line is uncommented the preset won't work?

This line calls the checked subroutine. If that subroutine has not been defined, your code will not work.


Daniel Zacharias wrote on Thu, Feb 18, 2021 04:03 AM UTC:

I've been trying (and failing) to modify the King functions from the Apothecary presets. The problem I have is that if I remove the rank restriction for the king's jump, the preset just doesn't work anymore, unless I also remove the check to make sure the king isn't in check. So I can make the jump work, but jumping moves are still shown as legal even if the king is in check. This is what I have:

def King 
    checkleap #0 #1 0 2
    or checkleap #0 #1 1 2
    or checkleap #0 #1 2 2
    or checkleap #0 #1 0 3
    or checkleap #0 #1 1 3
    or checkleap #0 #1 2 3
    or checkleap #0 #1 3 3
//    and not sub checked #0   If this line is uncommented the preset won't work?
    and flag #0
    or checkleap #0 #1 1 0 
    or checkleap #0 #1 1 1;

def King-Range mergeall 
    leaps #0 1 0 
    leaps #0 1 1 
    leaps #0 0 2 
    leaps #0 1 2 
    leaps #0 2 2 
    leaps #0 0 3 
    leaps #0 1 3 
    leaps #0 2 3 
    leaps #0 3 3;

sub King from to:
if checkleap #from #to 1 1 or checkleap #from #to 1 0: 
return true;
endif;
    move #to #from;
     if checkleap #from #to 0 2
     or checkleap #from #to 1 2
     or checkleap #from #to 2 2
     or checkleap #from #to 0 3
     or checkleap #from #to 1 3
     or checkleap #from #to 2 3
     or checkleap #from #to 3 3
     and flag #from :
         if sub checked #from:
         die You may not perform the special moves out of check.;
          endif;
     move #from #to;
     return true;
     endif;
endsub;

What am I missing?


Daniel Zacharias wrote on Thu, Feb 18, 2021 01:02 AM UTC in reply to Fergus Duniho from 12:37 AM:

thank you!


🕸💡📝Fergus Duniho wrote on Thu, Feb 18, 2021 12:37 AM UTC in reply to Daniel Zacharias from Wed Feb 17 10:51 PM:

It's now fixed.


🕸💡📝Fergus Duniho wrote on Wed, Feb 17, 2021 11:57 PM UTC in reply to Daniel Zacharias from 10:51 PM:

That's partly my fault. I was working on the little used replace command today, but it turns out that drop and replace use most of the same code, and the drop command was used in these presets to randomize pieces. If Aurelian had saved the randomized position to a constant and had used the constant to recreate it, this problem would not have come up. I am currently comparing the two versions and rolling back my edits to try to figure out what change stopped drop from working as it had. While I'm doing this, it may or may not be working at times.


Daniel Zacharias wrote on Wed, Feb 17, 2021 10:51 PM UTC:

It's my turn in these two games but when I try to open them I just get a message saying a previous move was illegal

https://www.chessvariants.com/play/pbm/play.php?game=Apothecary+Chess-Classic&log=sxg-arx-2021-4-524

https://www.chessvariants.com/play/pbm/play.php?game=Apothecary+Chess-Modern&log=sxg-arx-2021-4-524


Jean-Louis Cazaux wrote on Tue, Jan 19, 2021 06:16 PM UTC:

https://www.chessvariants.com/play/pbm/play.php?game=Zanzibar-S&log=bughouse-numerist-2021-2-221

Yes,I believe that game was held before I changed and ticked the box of skipping first move.


Greg Strong wrote on Tue, Jan 19, 2021 03:10 PM UTC in reply to Fergus Duniho from Thu Jan 14 09:46 PM:

It looks like there may still be a problem:

https://www.chessvariants.com/play/pbm/play.php?game=Zanzibar-S&log=bughouse-numerist-2021-2-221

This shows white winning (correct) but Paul Rapoport winning (not correct.) But maybe this game was started before the 'skip first move' was checked which could explain it.


Daniel Zacharias wrote on Mon, Jan 18, 2021 04:37 AM UTC in reply to Greg Strong from Sun Jan 17 11:41 PM:

I just get a blank page


Greg Strong wrote on Sun, Jan 17, 2021 11:41 PM UTC in reply to Daniel Zacharias from 10:04 PM:

What happens when you try to save?

I'm sure I can clear out the HTML rules section if that's what's causing the issue.


Daniel Zacharias wrote on Sun, Jan 17, 2021 10:04 PM UTC:

I made this preset to test a game idea but I think I messed up the html in the rules section and now I'm unable to save any changes to it


Jean-Louis Cazaux wrote on Sun, Jan 17, 2021 07:37 AM UTC in reply to Fergus Duniho from Thu Jan 14 09:46 PM:

Yes, indeed. Checking that box has solved the issue. I don't know why I had not checked it in Zanzibar-S whereas I did for Zanzibar-XL. Now, it's OK, thank you.


🕸💡📝Fergus Duniho wrote on Thu, Jan 14, 2021 09:46 PM UTC in reply to Jean-Louis Cazaux from 08:26 PM:

It's having the same problem as Metamachy had. Presuming that your preset is otherwise similar enough to the one for Metamachy, you should check the checkbox for "Skip First Move".


Jean-Louis Cazaux wrote on Thu, Jan 14, 2021 08:26 PM UTC:

Hello. I wish someone could help me.

I have made a preset for Zanzibar-S. It works, but I confess that I have not understood everything. We have a game on-going.

Something is strange. The preset asks the invited player if he wants Black or White. If Black is chosen, the invited gets ... White. And vice-versa. Then the game goes normally, no problem, Black put the central pieces (like for Metamachy) and White play the 1st real stroke.

Just what is strange is it must be chosen White in order to get the Blacks.

Can anyone good at Game Courier Preset have a look and tell me what's wrong?

Thanks


Greg Strong wrote on Sun, Jan 3, 2021 07:02 PM UTC in reply to Jean-Louis Cazaux from Sat Jan 2 08:16 AM:

"Triangle" is not clear in this context of board with squares. I would simply say:

The Camel, a traditional piece from historic variants, is a (3,1) leaper.

The text has been updated


Jean-Louis Cazaux wrote on Sat, Jan 2, 2021 08:16 AM UTC:

I realize that my previous comment goes on a general page and then nobody knows what I'm talking about.

I was asking to just edit and rewrite the sentence about the move of the Camel in the rules presented for the Metamachy preset:

https://www.chessvariants.com/play/pbm/play.php?game=Metamachy&settings=default

It is said:

The Camel, a traditional piece from historic variants, can leap to any space at the opposite end of a 1x3 triangle.

"Triangle" is not clear in this context of board with squares. I would simply say:

The Camel, a traditional piece from historic variants, is a (3,1) leaper.

I can't do that change myself. Thank you


Jean-Louis Cazaux wrote on Wed, Dec 30, 2020 08:35 AM UTC:

The move for the Camel is strangely written:

"can leap to any space at the opposite end of a 1x3 triangle"

Can it be changed to write, more conventionally:

"is a (3,1) leaper"

Thank you


Greg Strong wrote on Mon, Dec 28, 2020 05:09 PM UTC in reply to Jean-Louis Cazaux from 04:19 PM:

Sure, no problem :)


Jean-Louis Cazaux wrote on Mon, Dec 28, 2020 04:19 PM UTC:

Sorry, I went too fast. For the U, could you put a Rhinoceros instead of a Unicorn? The rest is OK, Buffalo / Wildebeest is good


Jean-Louis Cazaux wrote on Mon, Dec 28, 2020 04:12 PM UTC:

That's very good. Thank you


Greg Strong wrote on Mon, Dec 28, 2020 03:41 PM UTC in reply to Jean-Louis Cazaux from 09:26 AM:

Ok, these changes have been made. I used a wildebeest, thinking it looks more like a buffalo than an ox des, but I can change it to ox if you prefer. I have a graphic for that as well.


Zhedric Meneses wrote on Mon, Dec 28, 2020 09:47 AM UTC:

ooo I wanna see the "revamped" set


Jean-Louis Cazaux wrote on Mon, Dec 28, 2020 09:26 AM UTC in reply to Zhedric Meneses from 02:47 AM:

@Greg: thanks a lot. 2 things:

  1. the back crocodile is indeed missing

  2. for the buffalo, I don't like the symbolic combined animal, it is not the spirit of that set. Could you replace it by the Ox ?

For cazauxgraphics, it is a very good question, I'm glad you ask because I had made this set >20 years ago for my 1st book and it is ugly for many pieces. I have much better, also much more complete, I'll send to you by PM.

Thanks again


Zhedric Meneses wrote on Mon, Dec 28, 2020 02:47 AM UTC:

I just wanna point out that there's no dark crocodile in the alfaerie set


Greg Strong wrote on Mon, Dec 28, 2020 12:09 AM UTC in reply to Jean-Louis Cazaux from Sun Dec 27 07:02 PM:

Ok, this has been done. Let me know if you would like anything changed.

Also, the Metamachy piece set group also has an option for "Cazaux" graphics, so that set should be expanded with the extra pieces as well. Which brings me to a question...

The piece graphics you used in your new book. Do you have the files for those? What format are they in? We might be able to use those files to improve the appearance of the Cazaux graphics and make more pieces available.


Jean-Louis Cazaux wrote on Sun, Dec 27, 2020 07:02 PM UTC:

OK yes, maybe it's simpler. The context is I notice that I have a full series of chessvariants (Shako, Metamachy, Teramachy, Gigachess II, Terachess II, Heavy C, Very Heavy C.) where I use 26 different pieces. So I wanted to make a set, using Alfaerie, and I was thinking expending Metamachy set for that.

This set has 12 pieces already; B, C, E, G, I, K, L, M, N, P, Q, R. The new pieces would be: (you can look at https://www.chessvariants.com/rules/terachess-ii)

A >> Amazon (QN)

D >> Duchess (KDAGH) (the Alfaerie for Falcon or for Duke would make it)

F >> buFFalo (NCZ)

H >> marsHal (RN)

J >> centaur or Judge (KN)

O >> sOrceress (leO). I use a star (8 legs) I don't know if there is one in Alfaerie

S >> admiral or Sailor (RK)

T >> Troll (GH+pawn) (the Alfaerie for Man maybe?)

U >> rhinoceros or Unicorn (W-then-B)

V >> crocodile or Vao (please put a crocodile not a bended cannon)

W >> War machine (WD)

X >> cardinal/archbishop (BN)

Y >> missionarY (BK)

Z >> giraffe or Zaraffa (Z)(please put a giraffe not a zebra)

Is it feasible? Thank you


Greg Strong wrote on Sun, Dec 27, 2020 06:07 PM UTC in reply to Jean-Louis Cazaux from 05:52 PM:

So yes, please add me. Thank you

Just let me know what pieces you would like added and what the notation should be.


Jean-Louis Cazaux wrote on Sun, Dec 27, 2020 05:52 PM UTC in reply to Greg Strong from 03:39 PM:

So yes, please add me. Thank you


Greg Strong wrote on Sun, Dec 27, 2020 03:39 PM UTC in reply to Jean-Louis Cazaux from 02:03 PM:

Only editors can. It involves editing PHP files stored on the server.

But if you let me know what you'd like to add, I'll be happy to add it.


Jean-Louis Cazaux wrote on Sun, Dec 27, 2020 02:03 PM UTC:

Still trying to understand how-to-do things. How can I edit the Set "Metamachy" in order to add more pieces ? Or maybe only editors can do it?


Greg Strong wrote on Sun, Dec 27, 2020 01:24 AM UTC in reply to Fergus Duniho from Sat Dec 26 02:30 AM:

Ok, they've been added into the Sac Chess Abstract set.


🕸💡📝Fergus Duniho wrote on Sat, Dec 26, 2020 02:30 AM UTC in reply to Greg Strong from Fri Dec 25 06:35 PM:

How about these for BNK and RNK?

Those look good. I approve of adding these to the Abstract pieces.


Jean-Louis Cazaux wrote on Fri, Dec 25, 2020 06:56 PM UTC in reply to Greg Strong from 06:35 PM:

Yes, it looks correct. Thank you

But personally, I'm unable to see anything with the abstract pieces, even for the simpler ones. I understand how it works, it is a perfect logic, but it is a strong effort for my brain to decode what is seen by my eyes. I don't know if other people have other experience, probably they have.


Greg Strong wrote on Fri, Dec 25, 2020 06:35 PM UTC:

How about these for BNK and RNK?


Jean-Louis Cazaux wrote on Fri, Dec 25, 2020 06:01 PM UTC in reply to Greg Strong from 05:13 PM:

Merry Christmas to everyone. Joyeux Noël !

The preset for Very Heavy Chess seems now ready. Thanks to Greg and all friends for your help.


Erik Lerouge wrote on Fri, Dec 25, 2020 06:00 PM UTC:

Merry Christmas!


🕸💡📝Fergus Duniho wrote on Fri, Dec 25, 2020 05:29 PM UTC in reply to Samuel Hoskins from 09:57 AM:

Fergus, in Janggi, if I want to swap both pairs of horses and elephants with each other, do I have to do it in a single action?

Yes. I have just fixed the preset to display the moves that are available for positioning these pieces. Move a Knight or Elephant to the adjacent Elephant or Knight to swap just those two. Move one to the other piece on the other side to swap both pairs. Move one to the same piece on the other side, or just click Pass, to leave their positions unchanged.


Greg Strong wrote on Fri, Dec 25, 2020 05:13 PM UTC in reply to Jean-Louis Cazaux from 10:29 AM:

Merry Christmas, everyone!

Ok, I have made anti-aliased versions of these pieces and added them to the Sac Chess piece set.

There is still a problem, though. The Sac Chess piece set group also contains an option for abstract graphics. So it would be best if we had abstract piece for RKN and BKN. I will see if I have any inspiration.


Jean-Louis Cazaux wrote on Fri, Dec 25, 2020 10:29 AM UTC in reply to Greg Strong from 01:32 AM:

Thank you Greg, it helps.

How can I add new pieces in the Sac set. What I would like to add are the 4 shown by Zhedric, they are fine for RKN and BKN. Letters can be H and T respectively (Heroine / Templar).

Merry Christmas everyone


Samuel Hoskins wrote on Fri, Dec 25, 2020 09:57 AM UTC:Good ★★★★

Fergus, in Janggi, if I want to swap both pairs of horses and elephants with each other, do I have to do it in a single action?


Zhedric Meneses wrote on Fri, Dec 25, 2020 02:01 AM UTC:

Found These, Black and White Pieces Included

I was about to find it in the Pocket Mutation set but there's none so


Greg Strong wrote on Fri, Dec 25, 2020 01:32 AM UTC in reply to Jean-Louis Cazaux from Thu Dec 24 08:58 PM:

In the Alfarie: Many piece set there are already figurines for the NRF and NBW piece types available, if it's possible to transfer them to the Sac Chess piece set.

It isn't because the Sac Chess set is anti-aliased.  Pieces that aren't in the SVG set will need to be created.  What do the NRF and NBW pieces in the alfaerie many look like?  There are hundreds of pieces so I don't know which ones you mean.

Practically where and how "open" the Sac set? My question is probably trivial, but I can't find how to do it. I believe it is not complicated but...

  1. Click here to go into Game Courier editor
  2. Change the Set Group to Sac Chess
  3. Change the Set to Sac Chess: Standard
  4. Click Test

Then, scroll to the bottom of the page and you'll see the pieces in the set.  There are only 12 at the moment, so plenty of room to add new ones.  (Each notation should be a single letter.)


Jean-Louis Cazaux wrote on Thu, Dec 24, 2020 08:58 PM UTC:

Practically where and how "open" the Sac set? My question is probably trivial, but I can't find how to do it. I believe it is not complicated but...


Kevin Pacey wrote on Thu, Dec 24, 2020 08:55 PM UTC:

In the Alfarie: Many piece set there are already figurines for the NRF and NBW piece types available, if it's possible to transfer them to the Sac Chess piece set.


Jean-Louis Cazaux wrote on Thu, Dec 24, 2020 08:48 PM UTC:

Yes Greg your second option would make it.

How to add them to the Sac set?


Greg Strong wrote on Thu, Dec 24, 2020 04:49 PM UTC in reply to Jean-Louis Cazaux from 07:28 AM:

In Pocket Mutation Chess, the preset uses these graphics for BKN and RKN:

I can't think of any other games with these pieces to look at. Thinking about it, it would also be easy to make new pieces from these:

I could just draw a + on the Cardinal and an X on the Chancellor.


Jean-Louis Cazaux wrote on Thu, Dec 24, 2020 07:28 AM UTC:

Trying to make a preset for Very Heavy Chess, I would like to expend the Set "Sac Chess" with 2 pieces: a Templar (BKN) and a Heroine (RKN). I don't know how to do. It would be good also to have corresponding icons for those pieces in the Alfaerie type, similar to what has been done (for me) on the Chess Board Painting Tool that I have used to make the graphics on the Very Heavy Chess page. Thanks for any help


Jean-Louis Cazaux wrote on Wed, Dec 23, 2020 06:26 PM UTC:

I have tried to make a Game Courier preset for my first time ever. I did it for Heavy Chess because it is easier as I borrowed almost everything to Kevin. I hope I did nothing wrong, if I did please forgive me.


🕸💡📝Fergus Duniho wrote on Sun, Sep 13, 2020 05:08 PM UTC in reply to A. M. DeWitt from 03:47 PM:

Also, the Marseillais Chess preset is exiting with an error as soon as you click the button for it on the game's Game Courier Preset page.

There were a couple typos in the include file for that game. I have now fixed them.


🕸💡📝Fergus Duniho wrote on Sun, Sep 13, 2020 05:01 PM UTC in reply to A. M. DeWitt from 03:47 PM:

I encountered a bug when using presets I made for large Shogi variants such as Chu Shogi. The bug prevents the blue boxes that highlight legal moves from being displayed for the second part of a double move. Apart from that, everything works normally. I also tried this with the Balanced Marseillais Chess preset, but the bug was not present there. Any ideas as to what's causing this?

It wasn't correctly handling the move "pass". I made an adjustment so that it now works.


A. M. DeWitt wrote on Sun, Sep 13, 2020 03:47 PM UTC:

I encountered a bug when using presets I made for large Shogi variants such as Chu Shogi. The bug prevents the blue boxes that highlight legal moves from being displayed for the second part of a double move. Apart from that, everything works normally. I also tried this with the Balanced Marseillais Chess preset, but the bug was not present there. Any ideas as to what's causing this?

Also, the Marseillais Chess preset is exiting with an error as soon as you click the button for it on the game's Game Courier Preset page.


🕸💡📝Fergus Duniho wrote on Mon, Aug 24, 2020 03:49 PM UTC in reply to H. G. Muller from 02:54 PM:

Okay, I see we were talking about different things. I have now added a line to set clicks to [] after the code you quoted.


H. G. Muller wrote on Mon, Aug 24, 2020 02:54 PM UTC in reply to Fergus Duniho from 02:34 PM:

Well, if that was changed, it still did not trickle through to me. There is a nocache=true on the URL, and I cleared my browser cache, but the code remains the same and the behavior persist. But we might not be talking about the same popup. I am referring to the 'confirm' box:

if (legalList.includes(moveNotation) || confirm(moveNotation + " is not marked as legal.\nDo you still want to try it?"))
	submit.click();
else
	clearBorders();

🕸💡📝Fergus Duniho wrote on Mon, Aug 24, 2020 02:34 PM UTC in reply to H. G. Muller from 11:35 AM:

I think the problem is that the array 'clicks' is not cleared when canceling the move through the popup.

That was the problem before I fixed it the other day.

It is cleared from resetBoard(), but the popup does not call that; it calls clearBorders().

The popup does call it. The Cancel button calls resetBoard() when it is clicked.


H. G. Muller wrote on Mon, Aug 24, 2020 11:35 AM UTC in reply to A. M. DeWitt from Sun Aug 23 04:24 PM:

I refreshed my browser cache. The Moves field works fine, but Game Courier still isn't displaying legal moves on the board after I try to make an illegal move with the mouse and then cancel it with the popup.

I tried this on an Apothecary preset, and I also see this behavior. I think the problem is that the array 'clicks' is not cleared when canceling the move through the popup. It is cleared from resetBoard(), but the popup does not call that; it calls clearBorders().


🕸💡📝Fergus Duniho wrote on Sun, Aug 23, 2020 07:06 PM UTC in reply to A. M. DeWitt from 04:24 PM:

It worked in my tests. In case it helps, I have purged the script from Cloudflare's cache.


A. M. DeWitt wrote on Sun, Aug 23, 2020 04:24 PM UTC in reply to Fergus Duniho from 03:41 PM:

I refreshed my browser cache. The Moves field works fine, but Game Courier still isn't displaying legal moves on the board after I try to make an illegal move with the mouse and then cancel it with the popup.


🕸💡📝Fergus Duniho wrote on Sun, Aug 23, 2020 03:41 PM UTC in reply to A. M. DeWitt from 02:16 PM:

I also found another bug that prevents Game Courier from displaying legal moves after trying to make an illegal move with the mouse and then cancelling it with the popup.

That's now fixed. It wasn't resetting a new variable I started using.


A. M. DeWitt wrote on Sun, Aug 23, 2020 02:16 PM UTC:

I also found another bug that prevents Game Courier from displaying legal moves after trying to make an illegal move with the mouse and then cancelling it with the popup.


🕸💡📝Fergus Duniho wrote on Sun, Aug 23, 2020 01:29 PM UTC in reply to H. G. Muller from 05:48 AM:

The new code is too careless in deciding whether a square coordinate is mentioned in a move string: it uses the JavaScript endsWith method.

Okay, I have corrected it to not use endsWith(). It now stores the final step into a variable before reducing the array to unique values, and it uses a comparison with that variable where it used to use endsWith(). I tested the new code on fission moves in Fusion Chess, and it worked.


H. G. Muller wrote on Sun, Aug 23, 2020 05:48 AM UTC in reply to A. M. DeWitt from 01:17 AM:

I have no idea how this is happening

This is happening because the JavaScript for highlighting was changed, to do the highlighting based on the full move string rather than on arrays of [origin, destination] pairs. The new code is too careless in deciding whether a square coordinate is mentioned in a move string: it uses the JavaScript endsWith method. And when you write 16e as destination in a move, this also ends in 6e. So when it loops through all board spaces to see if these occur in a move that starts with the selected piece, it finds these spurious matches.

This can only happen with chess-style coordinates if the file name would be multiple letters. So it did slip through the testing.

Just wait until Fergus fixes it.

 


A. M. DeWitt wrote on Sun, Aug 23, 2020 01:17 AM UTC:

There seems to be a bug in my rule-enforcing presets for large Shogi variants (except for Shosu Shogi) that makes the legal moves displayed for a piece repeat after ten squares. For example, in the Suzumu Shogi preset, if I click on the black Vice General in the starting position, Game Courier will display the normal legal move to 16e, but it will also show another legal move on 6e (which is still treated as illegal by the preset). I have no idea how this is happening, as I haven't changed the code for displaying legal moves (which is based on stalemated subroutines from teh chess3 and shogi include files) in any of these presets. Any help I can get would be greatly appreciated.

[Edit] I also found another bug that prevents Game Courier from displaying legal moves after trying to make an illegal move by the mouse and then cancelling it.


Aurelian Florea wrote on Sat, Jun 13, 2020 04:04 AM UTC:

No matter.

Now it works.

Microsoft edge got an update. I think that is the reason.

Thanks Fergus!


🕸💡📝Fergus Duniho wrote on Fri, Jun 12, 2020 07:39 PM UTC:

It's not clear what you are talking about. Perhaps you are still confused about what to do, since you have not yet created any pages for Game Courier presets. Select "Post Your Own Game" from the menu and follow the instructions for Game Courier content.


Aurelian Florea wrote on Fri, Jun 12, 2020 06:25 AM UTC:

I got it. But in the "description of your submition" (I have earlier noticed that in other boxes of the same type.) I can't post any links as the ok button does not work in the url posting window.


🕸💡📝Fergus Duniho wrote on Thu, Jun 11, 2020 08:34 PM UTC:

The Games to Play section lists webpages that feature Game Courier presets. It does not include direct links to settings files. To get your game included there, you have to create the right kind of webpage.


Aurelian Florea wrote on Thu, Jun 11, 2020 07:48 AM UTC:

Hello Fergus,

Ok! I have done that. I have 2 questions though.

How do I get read of the old presets? I need a clean everything to start over.

Why the new presets for Apothecary Chess- Modern and Apothecary Chess- Classic (it is how I renamed the games) don't appear on the website in the games to play folder.


🕸💡📝Fergus Duniho wrote on Tue, Jun 9, 2020 04:25 PM UTC:

You can always save any settings file under a new name.


Aurelian Florea wrote on Tue, Jun 9, 2020 08:57 AM UTC:

I'd like to modify the names of my apothecary1working preset to apothecary chess modern and apothecary2working preset to apothecary chess classic. If space cannot be used then an underscore is fine.


🕸💡📝Fergus Duniho wrote on Thu, Apr 30, 2020 01:43 AM UTC:

I updated addcomment.php and safe_email() today. When it sends email to the author(s) or inventor(s) associated with a page, it will now use a subject line that includes what the page is called, and the body of the email will include the comment. This is to make people more likely to read the emails that are sent when a comment is made. I entered some comments to test and debug it, and after I got it working, I deleted them.


🕸💡📝Fergus Duniho wrote on Wed, Apr 29, 2020 04:52 PM UTC:

There was a bug in the findpiece function that stopped it from finding the location of the Rooks. That's now been fixed, and castling will work.


Vitya Makov wrote on Wed, Apr 29, 2020 02:50 PM UTC:

I want to make castling in this game: https://www.chessvariants.com/play/pbm/play.php?game=Capablanca+Random+Chess&log=makov333-cvgameroom-2020-117-516 but cannot do this because of preset. can someone help me?


Aurelian Florea wrote on Wed, Apr 29, 2020 09:50 AM UTC:

Thinking about the problem the thought crossed my mind about if you can do an tutorial on expresions with more examples. I have trouble with this and asking you, Fergus, everytime something goes wrong is counter productive.


Aurelian Florea wrote on Wed, Apr 29, 2020 07:53 AM UTC:

Fergus,

I had managed to solve the errors in question but still I have not managed to write a function for the king that castles free. It has to have the normal move once it has moved before, but only the three forward move otherwise. This is done because the first lateral move may be a regular move or a castling move and this ambiguity would be treated later with the ask command.


Aurelian Florea wrote on Tue, Apr 28, 2020 06:25 PM UTC:

I don't know then.

Have you had the time to look at the links with presets I had sent you?Once again:

https://www.chessvariants.com/play/pbm/play.php?game=Frog+Chess&settings=FastCastling

https://www.chessvariants.com/play/pbm/play.php?game=Hannibal+Chess&settings=FastCastling

https://www.chessvariants.com/play/pbm/play.php?game=Waffle+Chess&settings=FastCastling

The code at the bottom of the page is supposed to allow full king moves once the king has already moved but for the first move it should not be allowed to move sideways. Those moves are left aside because they can also be castling moves and this case needs treating separately.


🕸💡📝Fergus Duniho wrote on Tue, Apr 28, 2020 06:08 PM UTC:

I did nothing. It said you were the winner when I looked at it.


Aurelian Florea wrote on Tue, Apr 28, 2020 05:21 PM UTC:

I'm not sure about what you have done but now it is fixed.

Thank you!


🕸💡📝Fergus Duniho wrote on Tue, Apr 28, 2020 04:08 PM UTC:

In this case, it's different. The game was ended by a resignation, not the won command, and the log has one more move than the backup. It says that Armin, who played Black, resigned. It shows the first player resigning, but that is Black in Shogi. This is in line with what you have told me.


Aurelian Florea wrote on Tue, Apr 28, 2020 01:13 PM UTC:

I am having the same problem as Dax00. Armin has resing our chushogi game but he is now considered the winner.


🕸💡📝Fergus Duniho wrote on Mon, Apr 27, 2020 04:04 PM UTC:

I added a new default variable called $players. This gets set once when an invitation is accepted, and it keep the same value throughout the game. Its value is set to a space-separated string containing the userid of the first player to move followed by the userid of the second player to move. Since this value never changes, it can be used to determine which player actually moved first. This will affect only new games going forward, and so far, all it does is give me some data I can check when I examine a log. I have not changed Game Courier to make any use of it.


Aurelian Florea wrote on Mon, Apr 27, 2020 02:55 PM UTC:

From what I had understood reading fairychess again today is that I the regular king move does not worth much. the subs Castle, Castlepos and King need to be all changed inside my presets as they are otherwise incompatible with the regular way of castling. So back to work!


🕸💡📝Fergus Duniho wrote on Mon, Apr 27, 2020 12:43 PM UTC:

I tried replacing the text of the log with that of the backup in my text editor before saving it to the site. My SCP program complained that it couldn't replace the file. But it did update its time stamp, and when I checked again, it identified you as the winner.


🕸💡📝Fergus Duniho wrote on Mon, Apr 27, 2020 12:37 PM UTC:

For some reason, that didn't work out right, and it recreated the log file I had deleted.


🕸💡📝Fergus Duniho wrote on Mon, Apr 27, 2020 12:35 PM UTC:

Do you mean this game?

https://www.chessvariants.com/play/pbm/play.php?game=Chu+Shogi&log=dax00-cvgameroom-2020-107-344

This game says that sxg played Black, and Black, who moves first in Shogi, made the last move and entered the won command with it. By all indications, your opponent won, and this is correctly recorded. Since none of the comments were personally identifying, I could not tell from them who was who. However, I then compared the log with its backup, and very curiously, all that was different between them was that the opponent and player were switched. According to the backup, you won. Since no new moves were made after the backup, I have deleted the log and renamed the backup to be the log. I'm also going to have to rewrite Game Courier to keep better track of who is who. I cannot have it relying on just swapping player and opponent values.


100 comments displayed

LatestLater Reverse Order EarlierEarliest

Permalink to the exact comments currently displayed.