Check out Atomic Chess, our featured variant for November, 2024.


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

Comments/Ratings for a Single Item

EarliestEarlier Reverse Order Later
Apothecary Chess-Modern. Large board variant obtained through tinkering with known games.[All Comments] [Add Comment or Rating]
Jean-Louis Cazaux wrote on Mon, Sep 18, 2023 09:33 AM UTC:

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


H. G. Muller wrote on Mon, Sep 18, 2023 10:17 AM UTC in reply to Jean-Louis Cazaux from 09:33 AM:

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.


💡📝Aurelian Florea wrote on Mon, Sep 18, 2023 11:17 AM UTC in reply to H. G. Muller from 10:17 AM:

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!


Jean-Louis Cazaux wrote on Mon, Sep 18, 2023 03:48 PM UTC in reply to Aurelian Florea from 11:17 AM:

If it may help, the Apothecary Chess-Classic doesn't have the issue, it works fine loading the GC.


💡📝Aurelian Florea wrote on Tue, Sep 19, 2023 05:28 AM UTC:

@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.


💡📝Aurelian Florea wrote on Tue, Sep 19, 2023 05:34 AM UTC in reply to Aurelian Florea from 05:28 AM:

@Fergus & HG No worry. I have managed!


💡📝Aurelian Florea wrote on Tue, Sep 19, 2023 05:59 AM UTC in reply to Aurelian Florea from 05:34 AM:

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.


💡📝Aurelian Florea wrote on Tue, Sep 19, 2023 06:12 AM UTC in reply to Aurelian Florea from 05:59 AM:

Feegus, Have you any idea on what is going on?


🕸Fergus Duniho wrote on Wed, Sep 20, 2023 02:53 PM UTC in reply to H. G. Muller from Mon Sep 18 10:17 AM:

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.


🕸Fergus Duniho wrote on Wed, Sep 20, 2023 03:10 PM UTC in reply to Aurelian Florea from Tue Sep 19 06:12 AM:

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.


💡📝Aurelian Florea wrote on Wed, Sep 20, 2023 03:28 PM UTC in reply to Fergus Duniho from 03:10 PM:

@Fergus, You were correct; a simple empty array has done the trick. Thanks!


💡📝Aurelian Florea wrote on Wed, Sep 20, 2023 03:30 PM UTC in reply to Aurelian Florea from 03:28 PM:

@Jean Louis, Now both 10x10 apothecary presets work fine! Thanks for your interest!


Jean-Louis Cazaux wrote on Wed, Sep 20, 2023 06:47 PM UTC in reply to Aurelian Florea from 03:30 PM:

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

EarliestEarlier Reverse Order Later

Permalink to the exact comments currently displayed.