Comments/Ratings for a Single Item
This preset is probably automated with GAME code generted by the Play-Test Applet. (I.e. the code in the betza.txt include.) This code indeed uses the 'onboard' test in several places, mostly for parsing the user's input move.
But the error message appears for me on invoking the preset from the link in the article, which should bring me to the start position. Only the Pre-Game GAME code should be executed at that point, and this would not do any onboard tests.
It seems to me that Game Courier acts here as if the user has entered a move, and then crashes on what it thinks the user entered. (Which would not be surprising if it pulled some garbage string out of nothing.)
I have not changed anything in the betza.txt include file since Aurelean reported the timeout of the mate test, and I cannot imagine that I introduced an error at that time that would not have been discovered in the mean time.
The preset for this game is not automated. Only the Grand Apothecary Games are. And they work fine! This used to work. I'll take a look.
Later Edit : I forgot how to enter the preset forcibly!
If it may help, the Apothecary Chess-Classic doesn't have the issue, it works fine loading the GC.
@Fergus or @HG
Can one of you help me be telling me how to access the preset. Currently I get the error bellow. But there was something I can't remember that if added to the page I could circumvent the error. Something like submit=edit. I don't remember exactly.
@Fergus & HG No worry. I have managed!
I have noticed the the difference between the two presets (besides the normal ones) is that the working one initializes the lastpiecetye (needed for the joker) to rook. It supposes to be initialized to None. When I initialize it to None it breaks like the other preset. So the problem is the treatment of none. So I get this error:
onboard expects a string, not an array.
Feegus, Have you any idea on what is going on?
This preset is probably automated with GAME code generted by the Play-Test Applet.
I looked at the code by appending "&submit=Edit" to the query string, and it has not been generated by the Play-Test Applet.
Have you any idea on what is going on?
Apart from instances in the fairychess include file, I see one instance of onboard in your code. It appears in your stalemated subroutine, and the variable passed to it has previously been calculated from the -Range function of a particular piece that has been found on the board. So, the problem may be due to the output of a particular range function. One -Range function that looks suspicious is your None-Range function, which returns an array of two empty arrays. It might work if you change this to just return an empty array, as a -Range function is supposed to return an array of coordinates, not an array of arrays. If that doesn't fix the problem, you can put in some debugging code to find out which -Range function is giving bad output when the code stops working.
@Fergus, You were correct; a simple empty array has done the trick. Thanks!
@Jean Louis, Now both 10x10 apothecary presets work fine! Thanks for your interest!
great! I want to code Bigorra. I have more than 26 different pieces, so I don't know how to do it. I wanted to look how you did for Ap. Chess.
13 comments displayed
Permalink to the exact comments currently displayed.
The link for Game Courier of Apothecary Chess Modern seems broken. I'm getting this message:
SYNTAX ERROR IN USER INPUT: on turn 0:
onboard expects a string, not an array.
Go back and try again