Check out Grant Acedrex, our featured variant for April, 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


25 comments displayed

LatestLater Reverse Order EarlierEarliest

Permalink to the exact comments currently displayed.