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
About Game Courier. Web-based system for playing many different variants by email or in real-time.[All Comments] [Add Comment or Rating]
Jean-Louis Cazaux wrote on Sat, Nov 20, 2021 10:56 PM UTC in reply to Ben Reiniger from 09:59 PM:

Thanks a lot, I didn't know that function. :=)


Ben Reiniger wrote on Sat, Nov 20, 2021 09:59 PM UTC in reply to Jean-Louis Cazaux from 08:10 PM:

@Jean-Louis, you type drawn into the Moves text field (instead of clicking anything).


Jean-Louis Cazaux wrote on Sat, Nov 20, 2021 08:10 PM UTC in reply to H. G. Muller from 07:39 PM:

I've never seen this possibility in the games I have played. I don't know how to do, when I do a move, I move a piece, how can I enter "drawn"?


H. G. Muller wrote on Sat, Nov 20, 2021 07:39 PM UTC in reply to Jean-Louis Cazaux from 07:20 PM:

I think you have to submit drawn as a move. In a rule-enforcing preset you have to make sure the preset would accept that GAME-code command.


Jean-Louis Cazaux wrote on Sat, Nov 20, 2021 07:20 PM UTC:

I imagine the question has been asked in the past. Sorry to ask again, I don't know the answer:

Is there any way to propose a draw, null, to an opponent on Game Courier?

(Resigning is not really a solution because if a game is going to no end, it is unfair to give a "lost" at the player who resigns and "has won" to the other player.)

Thanks


Daniel Zacharias wrote on Fri, Nov 19, 2021 06:50 AM UTC:

https://www.chessvariants.com/play/pbm/play.php?game=Pocket+Shogi+Copper&log=panther-cvgameroom-2021-304-264

In this pocket shogi copper game I'm trying to make the move k 8g-9h and I get an error

Syntax Error on line 376

The cond operator requires at least three arguments.

A. M. DeWitt wrote on Wed, Oct 20, 2021 04:06 AM UTC in reply to Fergus Duniho from 01:55 AM:

I saw your comment after I fixed the error in the preset's code, but thank you for posting the information anyway. I'm guessing the errors above the subroutine error in the log were the main cause of the Error 524 problem, but it could be that the preset was just so big that it took too long to spot the error and print the log. After all, Taishin Shogi's GC preset is the largest GC preset with full rule enforcement and display of legal moves that I know of (in terms of board size (25x25), number of piece types (232 in total), and number of lines of code (total is probably close to or over 1000 as of right now)).


🕸💡📝Fergus Duniho wrote on Wed, Oct 20, 2021 01:55 AM UTC in reply to A. M. DeWitt from Tue Oct 19 09:18 PM:

Is it just me, or is the latest version of my Taishin Shogi GC preset overloading this whole site? Whenever I click on my settings file to play it, I get nothing but 524 errors for a while.

When I first tried loading it, I checked the error log and got

PHP Fatal error: Maximum execution time of 30 seconds exceeded in /home/chessvariants/public_html/play/pbm/gamecode.php on line 2524

I fixed some of the errors above it, but I still get a maximum execution time exceeded error. There is one persisting and multiply-repeating warning that I think is due to your own code:

PHP Warning: Undefined array key 897 in /home/chessvariants/public_html/play/pbm/gamecode.php on line 1122

The line in question, line 1122, is part of the code for the "sub" command, which indicates the beginning of a subroutine definition, and it says:

$linenum = $links[$linenum];

This refers to an array that is calculated before any line of GAME Code is executed. This comes from analyzing the structure of the code. So, I would recommend looking for a structural problem in one of your subroutines. Perhaps a block of code wasn't closed off properly, causing endsub to not be expected yet when it appeared. The problem might be around line 897 of your code, since that was the value for $linenum in the warning that kept repeating.


A. M. DeWitt wrote on Tue, Oct 19, 2021 09:18 PM UTC:

Is it just me, or is the latest version of my Taishin Shogi GC preset overloading this whole site? Whenever I click on my settings file to play it, I get nothing but 524 errors for a while.

I will admit that the thing is one of the biggest GC presets out there in terms of file size (if not the biggest) since there are so many piece types, as well as special promotion rules (i.e. contagious pieces), and all manner of multi-part moves, but I haven't had problems like this before.

Edit: I found the problem. It was a tiny syntax error in the isdoublemove subroutine. Everything works fine now.


🕸💡📝Fergus Duniho wrote on Mon, Oct 4, 2021 08:41 PM UTC in reply to Jean-Louis Cazaux from 07:12 PM:

There was a syntax error in one line. It's now corrected.


Daniel Zacharias wrote on Mon, Oct 4, 2021 07:31 PM UTC in reply to Jean-Louis Cazaux from 07:12 PM:

I can't either, so it's not just you.


Jean-Louis Cazaux wrote on Mon, Oct 4, 2021 07:12 PM UTC:

The problems seem to come again. I cannot access to any of my on-going games. Just me?


🕸💡📝Fergus Duniho wrote on Sun, Oct 3, 2021 01:23 PM UTC in reply to Daniel Zacharias from 04:42 AM:

I was looking for a global way to eliminate some PHP warnings, but that requirement proved to be too restrictive. So, I have removed it.

I then tried requiring minimal argument counts instead, but even that caused problems for unary, binary, and mixed unary/binary operators. But since they seemed to work with operators requiring 3 or more arguments, I left those minimal argument count requirements in.


Jean-Louis Cazaux wrote on Sun, Oct 3, 2021 12:20 PM UTC in reply to Daniel Zacharias from 04:42 AM:

It was general. I think it's back OK now.


Daniel Zacharias wrote on Sun, Oct 3, 2021 04:42 AM UTC:

Whenever I try to open any of my current games I get one of these errors

The == operator requires two non-null arguments.

or

The join operator requires two non-null arguments.

🕸💡📝Fergus Duniho wrote on Fri, Jun 4, 2021 06:51 PM UTC in reply to A. M. DeWitt from 02:00 PM:

I fixed the problem and went back to using the same code for array as I do for values. The problem was that for an array with one element, it was returning the value of that element instead of a one-member array.


🕸💡📝Fergus Duniho wrote on Fri, Jun 4, 2021 06:38 PM UTC in reply to A. M. DeWitt from 02:00 PM:

Something is wrong with GAME Code. Whenever I try to load one of my large Shogi Variant presets, and by extension any preset that uses a similar stalemated subroutine, the last expression in for/foreach is calculated wrong. It evaluates to a single square, whereas before it would correctly evaluate to the array of board spaces.

I've recently been working on making array work the same as values, but it looks like there was some discrepancy between the output of values and the original output of array for some uses of array in your presets and in the Shogi preset too. For the time being, I have reverted array to its old code, and I will test things using a temporary name.


A. M. DeWitt wrote on Fri, Jun 4, 2021 02:00 PM UTC:

Something is wrong with GAME Code. Whenever I try to load one of my large Shogi Variant presets, and by extension any preset that uses a similar stalemated subroutine, the last expression in for/foreach is calculated wrong. It evaluates to a single square, whereas before it would correctly evaluate to the array of board spaces.


Greg Strong wrote on Wed, May 19, 2021 06:48 PM UTC in reply to A. M. DeWitt from 04:51 PM:

Hi Adam,

Yes, I have them. I'll try to get to it this evening.


A. M. DeWitt wrote on Wed, May 19, 2021 04:51 PM UTC:

@Greg Strong I sent you an email containing the next set file I want to upload to Game Courier. This one is for the Shogi pieces with full piece names, but I haven't gotten a response yet. Did you get my message?


Greg Strong wrote on Sun, May 9, 2021 02:20 AM UTC in reply to A. M. DeWitt from 01:35 AM:

It's not a typo but a change of policy. I've removed the http://www.chessvariants.com/ part and now it should work.


A. M. DeWitt wrote on Sun, May 9, 2021 01:35 AM UTC:

The new set file (Large shogi: Taishin Mnemonic) seems to have a messed up file path, probably resulting from a typo. Whenever I try to use it, the following error displays:

Only relative URLs are allowed for the value of $dir. Please change the value of $dir to a relative URL that begins with a forward slash.


A. M. DeWitt wrote on Sun, May 9, 2021 12:16 AM UTC:

@Greg Strong I saw your email that you updated the Large shogi: Taishin Mnemonic set file, but whenever I try do do anything with the new set, the page becomes completely blank for some reason. Does Fergus need to update the sets.php file as well?

Edit: The set is working now. Now to check that everything in the new set is correct...


A. M. DeWitt wrote on Fri, May 7, 2021 10:17 PM UTC in reply to Greg Strong from 06:33 PM:

I have just sent the set file to you via email. If the plus signs cause problens, let me know.

Also, I took a quick look at the Alfaerie: Many piece set, and the plus sign did not appear to be used in any of the piece labels, though this of course means little, as plus signs can be used in piece IDs by replacing the labels without the alias command.


🕸💡📝Fergus Duniho wrote on Fri, May 7, 2021 06:46 PM UTC in reply to Greg Strong from 06:33 PM:

But I will have to test having a + in the piece label ... I suspect that might cause a problem.

It shouldn't. Shogi uses the + sign in piece labels, and the Alfaerie:Many set uses all kinds of punctuation.


25 comments displayed

LatestLater Reverse Order EarlierEarliest

Permalink to the exact comments currently displayed.