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 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]
💡📝Aurelian Florea wrote on Thu, Jun 11, 2020 07:53 AM UTC:

@Thor

I had sent you an invitation with the new preset.


Thor Slavensky wrote on Thu, Jun 11, 2020 03:19 PM UTC:

Hi Aurelian, I really like to try out the new set-up, as I said it looks like very 'game-logical' with the Joker in the middle and the auxillary pieces nicely spread around it.. But I cannot open the invitation, I can't find the accept buttom, it just says, that it's your turn to move. Would you try again, or should I send an invitation to you ? 


💡📝Aurelian Florea wrote on Thu, Jun 11, 2020 04:23 PM UTC:

Hello Thor,

I have sent 2 general invitations 1 for each game. It should work.


💡📝Aurelian Florea wrote on Mon, Jun 15, 2020 08:32 AM UTC:

Considerring the arguments made by Jean-Louis Cazeaux I have changed the names of 2 of the pieces to my original intent so the griffin and aanca became dragon and griffin (meaning the aanca is called griffin now).


💡📝Aurelian Florea wrote on Mon, Jun 15, 2020 09:08 AM UTC:

Can I do the following changes to the apothecary: standard piece set?

I'd like to be able sometime myself because in the near future I hope to come up with some other new games.

 

Add a dragon (with the letter D) 

Delete the Bird

Rename the AB to A  the CA to L and the CH to H


💡📝Aurelian Florea wrote on Mon, Jun 15, 2020 05:25 PM UTC:

@Fergus,

I have noticed that I forgot to ask you how to restrict the king's special moves to when the king is not in check. May you give me a final extra hand for this project?

The preset is here : https://www.chessvariants.com/play/pbm/play.php?game=Apothecary+Chess-Modern&settings=ApothecaryChess-Modern


H. G. Muller wrote on Mon, Jun 15, 2020 06:51 PM UTC:

Considerring the arguments made by Jean-Louis Cazeaux I have changed the names of 2 of the pieces to my original intent so the griffin and aanca became dragon and griffin (meaning the aanca is called griffin now).

This seems a very bad change, and it also seems you misunderstood the arguments of Jean-Louis. For one, Griffin is the established English name for an F-then-R, and it would be very confusing to now use it for another piece. Jean-Louis never claimed the Griffin would be a suitable name for the W-then-F; only that Aanca was the historic name of the F-then-R, and that it would be bad to use it on another piece. And that Aanca referred to a monstrous mythical bird for which no English name exists.

And you now use the image of a Griffin for a piece called Dragon, and the image of a bird for a piece called Griffin...


🕸Fergus Duniho wrote on Tue, Jun 16, 2020 02:08 AM UTC:

The castle subroutine contains these lines:

  move #to #from; // Temporarily undo King move
  if sub checked #from:
    die A King may not castle out of check.;
  endif;

And before it ends, it includes this line:

  move #from #to; // Redo King move

💡📝Aurelian Florea wrote on Tue, Jun 16, 2020 04:23 AM UTC:

@HG,

I will be changing the pictures once I figure out how.

For now you can use the symbolic apothecary piece set.


💡📝Aurelian Florea wrote on Tue, Jun 16, 2020 05:43 AM UTC:

I had tried the following in the postmove section 1 but with little succes:

 

if flag f2 and == moved K:
move $dest $origin; // Temporarily undo King move
  if sub checked $origin:
    die A King may not castle out of check.;
  endif;
move $origin $dest;
endif;


🕸Fergus Duniho wrote on Tue, Jun 16, 2020 11:07 PM UTC:

You had this code before it. You should be able to see how it would stop your other code from working.

if == moved K: 
  unsetflag f2;
  set Kpos $dest;
endif;

💡📝Aurelian Florea wrote on Wed, Jun 17, 2020 07:25 AM UTC:

@Fergus,

I'm glad to say I have managed to make it work.

Here is the code that does well:

if flag f2 and moved == K:
move $dest $origin; // Temporarily undo King move
  if sub checked $origin and not checkleap $origin $dest 1 0 or checkleap $origin $dest 1 1:
    die A King may not castle out of check.;
  endif;
move $origin $dest;
endif;

if == moved K: 
unsetflag f2;
set Kpos $dest;
endif;

if sub checked var Kpos:
  die You may not move into check.;
endif;

Later edit:

But althought the code works for white it does not work for black well, and also there is a weird side effect where a queen move on the first square generates the a king may not castle out of check error. So there is still work to do despite the progress.

2nd edit:

I think I have found the bug that generates both problems. It is the first if :

if flag f2 and moved == K:

this is either always true or always false if I move the == ahead of moved but I cannot get it to work in the intended way which is enter the condition when flag f2 of set and the K has just been moved.


Greg Strong wrote on Wed, Jun 17, 2020 02:49 PM UTC:

Should be:

if and flag f2 == moved K:

Operators come before their arguments.  I'll add parenthesis to show what's going on (although you should not use the parenthesis):

if (and (flag f2) (== moved k))

 


💡📝Aurelian Florea wrote on Wed, Jun 17, 2020 04:41 PM UTC:

I see what you say but with that I get always false. And the flag works well. I had checked.  So it is the equality. If i write if and flag f2 moved == K then it works for the king but the code enters for other pieces too which is weird.  So maybe == moved K regardless of how is written does not give the expected answer but all T or all F, which is weird. And that probably means I have trouble somewhere else.


🕸Fergus Duniho wrote on Wed, Jun 17, 2020 10:26 PM UTC:

Black pieces use lowercase labels. K is the white King, not just any King.


💡📝Aurelian Florea wrote on Thu, Jun 18, 2020 05:23 AM UTC:

I know that. This is why the error seems weird to me. I'll get back to you on that!


🕸Fergus Duniho wrote on Thu, Jun 18, 2020 08:03 PM UTC:

You're still checking the flag on f2, which is not the starting space for the Black King.


💡📝Aurelian Florea wrote on Fri, Jun 19, 2020 06:00 AM UTC:

All right, you were correct on that final point, but things are not done.

Let us start from scratch. Maybe I'll understand what is going on.

The code that greg has suggested:

if and flag f2 == moved K:

for the condition that enters the main code in question does not work although the way I see it it should.. It is always false. I have checked for the flag. That works fine so it moved be the == moved K part. But I can't see why!


🕸Fergus Duniho wrote on Fri, Jun 19, 2020 05:00 PM UTC:

Are you saying that this code is not working?

if and flag f9 == moved k:

Looking at the rest of your code, I see details that pertain only to castling, but I presume this code is not for castling. You need to understand what the code does and remove or modify what doesn't fit your purposes.


💡📝Aurelian Florea wrote on Mon, Jun 22, 2020 11:38 AM UTC:

Fergus,

I have solved it:

if flag f2:
if moved == K:
  move $dest $origin; // Temporarily undo King move
  if sub checked $origin:
    if not or checkleap $origin $dest 1 0 checkleap $origin $dest 1 1:
    die A King may not use the special moves out of check.;
  endif;
endif;
  move $origin $dest;
endif;
endif;


Carlos Cetina wrote on Mon, Jun 22, 2020 07:35 PM UTC:

@Aurelian,

At our current game I cannot make 7... b h5-f3 (bishop x wizard) because the GC program says: "A King may not use the special moves out of check. Use your browser's BACK button to go back to the previous page, then reload if necessary."

In order not to affect the current games, it would be convenient to do the tests to improve the code in a cloned preset using another settings name.


💡📝Aurelian Florea wrote on Tue, Jun 23, 2020 02:13 AM UTC:

I removed the buggy code. 

Now it should work!


💡📝Aurelian Florea wrote on Tue, Jun 23, 2020 06:43 AM UTC:
files=10 ranks=12 holdingsType=1 promoZone=3 promoChoice=!P*N*B*C*W*R2*J2*Q1*D1*G1 graphicsDir=../graphics.dir/alfaerie/ whitePrefix=w blackPrefix=b graphicsType=gif squareSize=54 symmetry=mirror shuffle=G:BD,:BN,GDQ hole::::a1,b1,c1,i1,j1,,a12,b12,c12,i12,j12 pawn:p:ifmnDfmWfceF:pawn:a4,b4,c4,d4,e4,f4,g4,h4,i4,j4,,a9,b9,c9,d9,e9,f9,g9,h9,i9,j9 rook::::a2,j2,,a11,j11:1 queen::::e3,,e10:1 bishop:B:B:bishop:d3,g3,,d10,g10 knight:N:NmHmA:knight:c3,h3,,c10,h10:1 wizard:W:FL:mage:d1,g1,,d12,g12 champion:C:WAD:champion:e1,h1,,e12,h12:1 joker:J:fI:fool:f1,,f12 dragon:D:FyafsF:dragon:i3,,i10 griffin:G:WyafsW:gryphon:b3,,b10 king:K:KimbsLimbsN:king:f3,,f10

💡📝Aurelian Florea wrote on Wed, Jun 24, 2020 01:55 AM UTC:

@Fergus,

I have moved the buggy code back to the old testing ground:

https://www.chessvariants.com/play/pbm/play.php?game=Apothecary+Chess+1&settings=Apothecary1working&submit=Edit

if flag f2:
if moved == K:
  move $dest $origin; // Temporarily undo King move
  if sub checked $origin:
    if not or checkleap $origin $dest 1 0 checkleap $origin $dest 1 1:
    die A King may not use the special moves out of check.;
  endif;
endif;
  move $origin $dest;
endif;
endif;

The way this goes wrong is that other pieces other than the king are affected by it. Any idea why?


H. G. Muller wrote on Wed, Jun 24, 2020 06:40 AM UTC:

I implemented 'repeated shuffling' in the diagram now, where the shuffle parameter accepts a comma-separated list of shuffles, which are then performed in order. I also added a new shuffle limitation: a piece prefixed with ':' (colon) will not be shuffled to different shades (like a '!' prefix would do), but to symmetric locations. (Which, on boards with an even number of files, should also have opposit shades.) Better make sure to apply it only to an even number of pieces on a set of symmetrically distributed locations!

I think this should allow you to do the shuffling you want, through a trick: When you shuffle (say) Knights and Bishops with :BN specification, it can only leave them as they were, or swap the N and B on both wings. Otherwise the Bishops would no longer be symmetrically positioned.

So what you can do is start the Bishops in the d- and g-file, and (say) A and C on the b- and i-file, and then shuffle A:BC. This will make the B end up either on d/g or b/i, with 50-50 chance. After that you shuffle B and N (which started on c- and h-file), as :BN, to randomize those while preserving symmetry. Finally you shuffle ACQ without limitations. So the specification would be shuffle=A:BC,:BN,ACQ .


💡📝Aurelian Florea wrote on Wed, Jun 24, 2020 08:10 AM UTC:

I have tested it by pressing restart and it does not go well. The queen and knigt get swaped. But not the way I described in the rules. My code is here:


<script type="text/javascript" src="../membergraphics/MSinteractive-diagrams/betza.js"></script>
<div style="float:left;margin:0 40px 20px 0;">
<div class="idiagram">
files=10
ranks=12
holdingsType=1
promoZone=3
promoChoice=!P*N*B*C*W*R2*J2*Q1*D1*G1
graphicsDir=../graphics.dir/alfaerie/
whitePrefix=w
blackPrefix=b
graphicsType=gif
squareSize=54
symmetry=mirror
shuffle=G:BD,:BN,GDQ
hole::::a1,b1,c1,i1,j1,,a12,b12,c12,i12,j12
pawn:p:ifmnDfmWfceF:pawn:a4,b4,c4,d4,e4,f4,g4,h4,i4,j4,,a9,b9,c9,d9,e9,f9,g9,h9,i9,j9
rook::::a2,j2,,a11,j11:1
queen::::e3,,e10:1
bishop:B:B:bishop:d3,g3,,d10,g10
knight:N:NmHmA:knight:c3,h3,,c10,h10:1
wizard:W:FL:mage:d1,g1,,d12,g12
champion:C:WAD:champion:e1,h1,,e12,h12:1
joker:J:fI:fool:f1,,f12
dragon:D:FyafsF:dragon:i3,,i10
griffin:G:WyafsW:gryphon:b3,,b10
king:K:KimbsLimbsN:king:f3,,f10
</div></div>

I had tested it be pressing restart a few times on the diagram. Refresh gives me the initial position.


H. G. Muller wrote on Wed, Jun 24, 2020 08:15 AM UTC:

OK, I see that my trick did not work for swapping b and d, as these are same shade, so that the B must get automatically to opposit halves, and the : adds nothing extra. I changed the meaning of : now to explicitly mean "mirror-image location", and adapted the Diagram script for that. This should make your diagram work as you have it, with the updated script.


💡📝Aurelian Florea wrote on Wed, Jun 24, 2020 08:25 AM UTC:

I'm not sure why but the diagram still does not work.

It behaves the same way.

I'm wondering if you have not tried to put a bishop over an already occupied square. Would this be an error?


H. G. Muller wrote on Wed, Jun 24, 2020 08:33 AM UTC:

I think caching again is broken on this website. I uploaded a new Diagram script, but when I read it back from the website, it shows the old text. Only when I suffix the URL with some random suffix, like ?t=1234, I get to see the newly uploaded text.

So this is what you can do as a work-around too: suffix the URL to betza.js in your comment to make it betza.js?nocache=true , to make sure it will use the new script. You still would have to flush your browser cache. When I tried the current script locally on your diagram, the shuffling works as it should.

BTW, note that when you specify symmetry=mirror (as you must, to preserve vertical symmetry during shuffling), there is no need to mention the location of the black pieces, as the Diagram would automatically add those. So you could leave out the double comma and everything behind it, even for the holes.


💡📝Aurelian Florea wrote on Wed, Jun 24, 2020 11:42 AM UTC:

@HG,

Indeed HG, now the diagram works as expected for me too!...

Thanks!


💡📝Aurelian Florea wrote on Thu, Jun 25, 2020 01:33 PM UTC:

@Fergus,

I have remade the code to work as expected for the king to not be able to use the special moves out of check:

/play/pbm/play.php?game%3DApothecary+Chess+1%26settings%3DApothecary1working

The relevant piece of code for white  is:

if flag f2:
if == moved K:
  if sub checked $origin:;
    if not or checkleap $origin $dest 1 0 checkleap $origin $dest 1 1:
    die A King may not use the special moves out of check.;
  endif;
endif;
endif;
endif;

There is still the problem that the special moves are displayed as legal when a king is in check. Is that solvable?


🕸Fergus Duniho wrote on Thu, Jun 25, 2020 04:22 PM UTC:

As long as you evaluate actual moves in the Post-Move sections, you have to bear in mind that potential moves are evaluated before a move would be made, and actual moves are evaluated after a move has been made. This means that you have to sometimes use different code for potential and actual moves. That's true of the King here. You should use both a function and a subroutine for the King's movement. The function should handle only potential moves, and it should stop a King from making its special move out of check before it makes its move. The subroutine should handle actual moves, and it should undo a King's special move after it has been made to make sure the King didn't move out of check with that move, then redo it if it was legal.


💡📝Aurelian Florea wrote on Fri, Jun 26, 2020 08:50 AM UTC:

 have written the following code but I don't know where to call the subroutine.

sub King from to

    move #to #from;
    if sub checked #from:
    verify or checkleap #from #to 1 0 checkleap #from #to 1 1;
    else:
    verify fn King #from #to;
    endif;
    move #from #to;

endsub;

;


💡📝Aurelian Florea wrote on Fri, Jun 26, 2020 09:47 AM UTC:

To the editors.

Can a piece set be changed or it needs to be redone from the beginning?

I want to change in the apothecary chess standard piece set the bird with the dragon.


🕸Fergus Duniho wrote on Fri, Jun 26, 2020 11:57 AM UTC:

Since your function has to allow special moves but stop the illegal ones, you should not be calling your function from your subroutine. They should be independent from each other. How to call the subroutine is described in the Fairychess include file tutorial under "A Real Example from Chess".

The tutorial also describes how you can use different pieces with the same notation. Although you cannot modify a set within Game Courier, you can change which pieces you use and what notation you will use for them. I recommend reviewing this tutorial every now and then.


🕸Fergus Duniho wrote on Fri, Jun 26, 2020 12:52 PM UTC:

While I could add code to Game Courier for enabling GAME Code programs to modify the images in piece sets, it would not work in Edit mode. So, if you want to use piece images that are not in your current set, you should change it to use a different set.


💡📝Aurelian Florea wrote on Fri, Jun 26, 2020 01:17 PM UTC:

Fergus, 

I want to use the same set, not another one, but with a dragon picture instead of a bird picture. Is that even possible or should I make another piece set from the beginning?


Greg Strong wrote on Fri, Jun 26, 2020 01:53 PM UTC:

Since you are using custom 'Apothecary' sets, and I doubt other games are using these sets, they can be altered.  Do you want to keep the notation the same?  ('A' becomes bird)  Or do you want to add a Dragon as 'D'?


💡📝Aurelian Florea wrote on Fri, Jun 26, 2020 02:12 PM UTC:

I'd prefer the Dragon with a "D".


Greg Strong wrote on Fri, Jun 26, 2020 08:39 PM UTC:

Ok, I have added D and left the A so older games will still view correctly.  If you are going to change the notation, remeber to change the name of the settings so that you don't break older game logs.


💡📝Aurelian Florea wrote on Sat, Jun 27, 2020 12:19 AM UTC:

Thank you, Greg!


💡📝Aurelian Florea wrote on Fri, Jul 3, 2020 01:31 PM UTC:

@Oisin D.

I need a moment with no ongoing games so that I can change the pieces from Griffin and Aanca to Dragon and Griffin, so please temporarilly delete your pending invitation.


Greg Strong wrote on Fri, Jul 3, 2020 01:48 PM UTC:

You need to use a new Settings name so old games don't break.  But if you do that, the pending invite is ok.


💡📝Aurelian Florea wrote on Fri, Jul 3, 2020 02:10 PM UTC:

@ Greg,

I prefer to keep the name  and maybe rename the settings files used for old games. Can it be done?


Greg Strong wrote on Fri, Jul 3, 2020 09:02 PM UTC:

I prefer to keep the name  and maybe rename the settings files used for old games. Can it be done?

You can keep the name of the game, but the settings name will need to change.  I don't know how to change the settings name for existing logs.


💡📝Aurelian Florea wrote on Sat, Jul 4, 2020 10:11 AM UTC:

I should use redirect then on the old settings file toward the new one, isn't it?


💡📝Aurelian Florea wrote on Wed, Sep 23, 2020 03:54 PM UTC:

@HG, Hello, The interactive diagram on this page puts in the initial position an extra black joker outside of those defined. Why is this happening?


💡📝Aurelian Florea wrote on Sun, Sep 27, 2020 12:10 PM UTC:

I have played this game against the interactive diagram's AI. It takes less time that an game courier match and I wanted to see how the games feel after the final changes I have made. The game seems to be very tactical now with many strong pieces quickly engaging . I'm really unsure about how good the game is. It's learning curve is quite steep but maybe once properly learned it is fun. I was hoping that more experienced player will take a look and try to play against the interactive diagram until the endgame (me I always blunder something before the endgame).


💡📝Aurelian Florea wrote on Mon, Sep 28, 2020 03:35 PM UTC:

I have switched the places of sangoma and wizard in the opening position in order to give more opening opportunities.


💡📝Aurelian Florea wrote on Fri, Oct 2, 2020 11:49 AM UTC:
files=10 ranks=12 symmetry=none holdingsType=1 promoZone=4 promoChoice=!P*N*B*C*W*R3*J3*G2*Q2*D2 graphicsDir=../graphics.dir/alfaerie/ whitePrefix=w blackPrefix=b graphicsType=gif squareSize=54 hole::::a1-j1,,a12-j12 pawn:p:ifmnDfmWfceF:pawn:a4,b4,c4,d4,e4,f4,g4,h4,i4,j4,,a9,b9,c9,d9,e9,f9,g9,h9,i9,j9 rook::::a2,j2,,a11,j11:1 queen::::e3,,e10:1 bishop:B:B:bishop:d3,g3,,d10,g10 knight:N:NmHmA:knight:c3,h3,,c10,h10:1 wizard:W:FL:mage:d1,g1,,c12,f12 champion:C:WAD:champion:e1,h1,,d12,g12:1 joker:J:fI:fool:f1,,e12 dragon:D:FyafsF:dragon:i3,,i10 griffin:G:WyafsW:gryphon:b3,,b10 king:K:KimbsLimbsN:king:f3,,f10 symmetry=mirror shuffle=G:BD,:BN,GDQ

I have tried this week to add a compound piece. Unfortunately this proved to make the game worse as more opening moves were forced. So I reverted to an earlier version while keeping the idea that black has more pieces on the non-king side. This will be the final apothecary chess-modern game. I'm satisfied with the game.


💡📝Aurelian Florea wrote on Wed, Dec 2, 2020 05:27 PM UTC:
files=10 ranks=10 promoZone=3 promoChoice=!PZNBWCR2J2G2L1Q1 graphicsDir=../graphics.dir/alfaerie/ whitePrefix=w blackPrefix=b graphicsType=gif squareSize=54 symmetry=none pawn::fmW*fceF::a3,b3,c3,d3,e3,f3,g3,h3,i3,j3,,a8,b8,c8,d8,e8,f8,g8,h8,i8,j8 knight:N:NmHmA:knight:c2,h2,,c9,h9 bishop::::d2,g2,,d9,g9 rook::::a2,j2,,a9,j9 queen::::e2,,e9 king::KisO3::f2,,f9 chancellor:L:::f1,,f10 griffin:G:WyafsW:gryphon:e1,,e10 wizard:W:FL:mage:b1,i1,,b10,i10 champion:C:::d1,g1,,d10,g10 Cavalier:Z:NW:wideknight:b2,,i9 joker:J:fI:fool:i2,,b9 royal=6

💡📝Aurelian Florea wrote on Thu, Dec 24, 2020 07:21 PM UTC in reply to Aurelian Florea from Wed Dec 2 05:27 PM:

The interactive diagrams on this page have stopped working. Any idea why?


H. G. Muller wrote on Thu, Dec 24, 2020 11:18 PM UTC in reply to Aurelian Florea from 07:21 PM:

Fixed!

I had made a small change, to also look for castling partners of non-royal pieces that can castle, but that made it chocke on blacked-out squares, when it tried to figure out what move these had.


💡📝Aurelian Florea wrote on Fri, Dec 25, 2020 06:16 AM UTC in reply to H. G. Muller from Thu Dec 24 11:18 PM:

Thanks!


💡📝Aurelian Florea wrote on Fri, Dec 25, 2020 06:17 AM UTC in reply to H. G. Muller from Thu Dec 24 11:18 PM:

But they still are not showed, HG!


H. G. Muller wrote on Fri, Dec 25, 2020 09:13 AM UTC:

Flush your browser cache, or you will keep using the old version of the Diagra script. It works for me.


catugo wrote on Fri, Dec 25, 2020 02:21 PM UTC in reply to H. G. Muller from 09:13 AM:

@Hg, You were correct. Now it works for me too. Curiously though that my other apothecary game worked fine!


Daniel Zacharias wrote on Sat, Jan 28, 2023 12:44 AM UTC:

The diagrams on this and the Apothecary Chess-Classic page are missing white's brouhaha squares, and so are both corresponding game courier presets.


💡📝Aurelian Florea wrote on Sat, Jan 28, 2023 07:08 AM UTC in reply to Daniel Zacharias from 12:44 AM:

To me they look normal!


💡📝Aurelian Florea wrote on Sat, Jan 28, 2023 09:11 AM UTC in reply to Aurelian Florea from 07:08 AM:

Now I see what you mean. I don't think it is something I have done!


💡📝Aurelian Florea wrote on Sun, Jan 29, 2023 10:32 AM UTC in reply to Aurelian Florea from Sat Jan 28 09:11 AM:

@Fergus Have you any idea about what is going on!


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.


74 comments displayed

EarliestEarlier Reverse Order Later

Permalink to the exact comments currently displayed.