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 by catugo

LatestLater Reverse Order EarlierEarliest
Apothecary chess preset error[Subject Thread] [Add Response]
Aurelian Florea wrote on Sun, Aug 30, 2020 05:10 AM UTC:

I cannot figure out what is going on. To me the preset in question works fine. Any suggestions?


Aurelian Florea wrote on Fri, Aug 28, 2020 04:40 PM UTC:

I don't now what you are doing. Please give me more details. Is it a game you play or an older log?


Aurelian Florea wrote on Fri, Aug 28, 2020 04:27 PM UTC in reply to Greg Strong from 02:37 PM:

Please try again!


Aurelian Florea wrote on Fri, Aug 28, 2020 06:15 AM UTC:

@Greg, Are things ok now?


Aurelian Florea wrote on Wed, Aug 26, 2020 05:34 AM UTC in reply to Greg Strong from Tue Aug 25 08:53 PM:

I think I had solved it. If not I had corrected the error for another Apothecary chess modern preset. So please say that it does not work, if the case.


Aurelian Florea wrote on Sun, Aug 23, 2020 04:37 AM UTC:

I have defined the none range piece type definition with (()()): def None-Range (()()); That because the error I mentioned earlier was that the piece that was the joker imitating was not an array.

@Greg,

The preset you have shown me is an older one. The newest ones are: https://www.chessvariants.com/play/pbm/play.php?game%3DApothecary+Chess-Classic%26settings%3DApothecary_Chess-Classic https://www.chessvariants.com/play/pbm/play.php?game%3DApothecary+Chess-Modern%26settings%3DApothecary_Chess-Modern.

Hopefully I'll have the time today to update the older presets.


Aurelian Florea wrote on Sat, Aug 22, 2020 04:48 PM UTC:

It looks to me that initializing the joker with none cannot be done. When I had selected rook things work out fine!


Aurelian Florea wrote on Sat, Aug 22, 2020 06:43 AM UTC:

@Fergus, As I had said in the previous message on this topic I have an error in my apothecary presets.

https://www.chessvariants.com/invention/apothecary-chess-1 https://www.chessvariants.com/invention/apothecary-chess-2

The for loop in the links above tries to the None piece for checking the legality. I remember the code working. Is it possible that some game code changes hinders this preset? Or is it a regular bug?


Aurelian Florea wrote on Fri, Aug 21, 2020 07:05 AM UTC:

I have a problem with the apothecary presets. The ones that are in their final shape give an error at this code (second line-1061)

1060 for (from piece) fn friends 1061 for to fn join const alias #piece "-Range" #from 1062 if fn const alias #piece #from #to and not fn friend space #to and onboard #to 1063 move #from #to 1064 if not sub checked cond == #from #kingpos #to #kingpos 1065 setlegal #from #to 1066 endif 1067 endif 1068 restore 1069 next 1070 next

Do other presets have the same problem, as I remember mine working the last time I had checked?


Expanded Chess. An attempt at a logical expansion of Chess to a 10x10 board.[All Comments] [Add Comment or Rating]
Aurelian Florea wrote on Sun, Aug 16, 2020 12:10 PM UTC:

Ok!


Aurelian Florea wrote on Sun, Aug 16, 2020 11:03 AM UTC:

There is an error in the article probably. When castling is described it says that the king moves 3 squares but this can't happen when castling short as the rook is in the way.


Game Courier Logs. View the logs of games played on Game Courier.[All Comments] [Add Comment or Rating]
Aurelian Florea wrote on Tue, Aug 11, 2020 07:14 AM UTC:

I have accepted these days 2 challenges as white and I got black (as the default). One was shako and the other is opulent chess. Is this a problem of mine or of the website?


Apothecary Chess-Classic. Large Board variant obtained trough tinkering with known games.[All Comments] [Add Comment or Rating]
💡📝Aurelian Florea wrote on Thu, Jul 23, 2020 08:41 AM UTC:

I think this article is ready for publishing the Apothecary Chess-Classic game.


Apothecary Chess-Modern. Large Board variant obtained trough tinkering with known games.[All Comments] [Add Comment or Rating]
💡📝Aurelian Florea wrote on Thu, Jul 23, 2020 08:40 AM UTC:

I think this article is ready for publishing the Apothecary Chess-Modern game.


FrogsAndPrincess. Members-Only Based on Princess and the Frog Story.[All Comments] [Add Comment or Rating]

Since this comment is for a page that has not been published yet, you must be signed in to read it.

Apothecary Chess-Classic. Large board variant obtained through tinkering with known games.[All Comments] [Add Comment or Rating]
💡📝Aurelian Florea wrote on Wed, Jul 22, 2020 03:41 PM UTC:

It works well. I hope there are no more bugs. Thanks Fergus!


💡📝Aurelian Florea wrote on Wed, Jul 22, 2020 02:55 PM UTC:

I have corrected the mistake and now it goes like this:

def White_Barren_Pawn 
checkaleap #0 #1 0 1 and cond empty #0 not capture empty #1
or and checkaleap #0 #1 -1 1 or checkaleap #0 #1 1 1 
cond empty #0 capture islower space #1;
def White_Barren_Pawn-Range merge leaps #0 1 0 leaps #0 1 1;

def Black_Barren_Pawn
checkaleap #0 #1 0 -1 and cond empty #0 not capture empty #1
or and checkaleap #0 #1 -1 -1 or checkaleap #0 #1 1 -1 
cond empty #0 capture isupper space #1;

But during my tests I came across the fact that a joker imitating a barren_pawn does not have the ability to capture another joker (although it is fine when capturing a knight).


💡📝Aurelian Florea wrote on Wed, Jul 22, 2020 03:41 AM UTC:

I'm confused about what you want to say. Isn't it that : and cond empty #0 capture isupper space #1; does exactly that, capture for actual moves, and isupper space #1 checks for a potential victim in potential moves? Where am I wrong?


💡📝Aurelian Florea wrote on Tue, Jul 21, 2020 07:32 PM UTC:

I have corrected the post move code to:

if != const alias $moved White_Joker:
  if != const alias $moved White_Pawn:
    set last_type_moved const alias $moved;
  else:
    set last_type_moved Black_Barren_Pawn;
  endif;
endif;

and similar for black. This code works.

But the Barren_Pawn worked fine when I had done only the move part of the pawn's powers but now I have added the capture part and nothing is legal anymore. Please help if you may! The code in question is:

def Black_Barren_Pawn
checkaleap #0 #1 0 -1 and cond empty #0 not capture empty #1
or checkleap #0 #1 -1 -1 or checkleap #0 #1 1 -1 
and cond empty #0 capture isupper space #1;


💡📝Aurelian Florea wrote on Tue, Jul 21, 2020 01:13 PM UTC:

@Fergus

A few weeks ago I have figured out that the joker imitates the pawn in all things which causes the joker moves to not be allowed.

To tackle this issue I have decided to write a Barren_Pawn function that the joker will use when imitating a pawn instead of imitating the regular pawn function. Otherwise things are unchanged. The Barren_Pawn functions are:

def White_Barren_Pawn checkaleap #0 #1 1 0 and empty #1 islower space #1 and or checkaleap #0 #1 1 -1 checkaleap #0 #1 1 1;

def White_Barren_Pawn-Range merge leaps #0 1 0 leaps #0 1 1;

def Black_Barren_Pawn checkaleap #0 #1 -1 0 and empty #1 isupper space #1 and or checkaleap #0 #1 -1 -1 checkaleap #0 #1 -1 1;

def Black_Barren_Pawn-Range merge leaps #0 1 0 leaps #0 1 1;

The piece of code involving the joker imitation is:

if != const alias $moved White_Joker:
  if != const alias $moved Pawn:
    set last_type_moved const alias $moved;
  else:
    set last_type_moved White_Barren_Pawn;
  endif;
endif;

and for black:

if != const alias $moved Black_Joker:
  if != const alias $moved Pawn:
    set last_type_moved const alias $moved;
  else:
    set last_type_moved Black_Barren_Pawn;
  endif;
endif;

I thought it should easily work. Unfortunately it does not. Any idea why that is?


Home page of The Chess Variant Pages. Homepage of The Chess Variant Pages.[All Comments] [Add Comment or Rating]
Aurelian Florea wrote on Thu, Jul 9, 2020 09:24 AM UTC:

I have the same problem.

Probably Fergus is working for something new.


Apothecary Chess-Classic. Large board variant obtained through tinkering with known games.[All Comments] [Add Comment or Rating]
💡📝Aurelian Florea wrote on Mon, Jul 6, 2020 01:41 PM UTC:

Ok, thanks for the heads up. I'll try to think at something else.


💡📝Aurelian Florea wrote on Mon, Jul 6, 2020 12:29 PM UTC:

@Fergus

The way I had thought the game, the joker should, when imitating a pawn, get only the regular power and not promotion rights or double move privileges. And that works best with moving some of the lines in the pawn function to the pawn subroutine. It should be rather easy.


Apothecary Chess-Modern. Large board variant obtained through tinkering with known games.[All Comments] [Add Comment or Rating]
💡📝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 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?


💡📝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.


Apothecary Chess-Classic. Large board variant obtained through tinkering with known games.[All Comments] [Add Comment or Rating]
💡📝Aurelian Florea wrote on Fri, Jul 3, 2020 11:38 AM UTC:

@Fergus,

I have unfortunately uncovered another bug on the preset for this game.

The joker can't move when imitating a pawn, although the moves are properly displayed. Any idea why?

 


💡📝Aurelian Florea wrote on Thu, Jul 2, 2020 08:51 AM UTC:

@ Fergus,

I have found the mistake. 
This piece of code was missing and adding it has solved the problem.

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


Brouhaha. Like Chess, but it really brings the ruckus! (8x8, Cells: 72) [All Comments] [Add Comment or Rating]
Aurelian Florea wrote on Thu, Jul 2, 2020 06:04 AM UTC:

I don't have any restriction, Brouhaha (the game) even have special powers that allow easier deployment in the beginning.


Aurelian Florea wrote on Thu, Jul 2, 2020 05:05 AM UTC:

Indeed it is I who has started using this name. It seemed apropiate to me, but at the time I have not put much though into it!


Apothecary Chess-Classic. Large board variant obtained through tinkering with known games.[All Comments] [Add Comment or Rating]
💡📝Aurelian Florea wrote on Wed, Jul 1, 2020 04:56 PM UTC:

It still gives the error:  "you may not move into check".


💡📝Aurelian Florea wrote on Wed, Jul 1, 2020 04:40 AM UTC:

The new sub looks like this:

sub Apothecary_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 1 3
     or checkleap #from #to 1 2
     and match rankname #to 1 10
     and flag #from :
         if not sub checked #from:
         move #from #to;
         return true;
         else die You may not perform the special moves out of check.;
         endif;
      endif;    
     return false;
endsub;

When trying to use regular moves out of check, I get the error "you cannot move into check.". This happens with or without the else part.


💡📝Aurelian Florea wrote on Tue, Jun 30, 2020 06:45 PM UTC:

I have made the distinction between the function and the subroutine. But I still could not make work as expected.

def Apothecary_King
checkleap #0 #1 1 3
or checkleap #0 #1 1 2
and not sub checked #0
and match rankname #1 1 10
and flag #0
or checkleap #0 #1 1 0 
or checkleap #0 #1 1 1;

 

sub Apothecary_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 1 3
     or checkleap #from #to 1 2
     and match rankname #to 1 10
     and flag #from :
         if sub checked #from:
         die You may not perform the special moves out of check.;
          endif;
     else:
     move #from #to;
     return true;
     endif;
endsub;


💡📝Aurelian Florea wrote on Tue, Jun 30, 2020 08:18 AM UTC:

You are saying the the checked subroutine must be used inside the function?

Like that:

def Apothecary_King
checkleap #0 #1 1 3
or checkleap #0 #1 1 2
and match rankname #1 1 10
and flag #0
and not sub checked $origin
or checkleap #0 #1 1 0 
or checkleap #0 #1 1 1;

because this does not work.


💡📝Aurelian Florea wrote on Mon, Jun 29, 2020 05:19 PM UTC:

I have separated the 2 codes but never are the special moves availeble. I'm not sure about what to do!


💡📝Aurelian Florea wrote on Mon, Jun 29, 2020 02:07 PM UTC:

@Fergus

I have tried to implement the ban on special moves while the virgin king is in check. I'm far from the result.

Could you take a look at the link below?

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


Interactive diagrams. Diagrams that interactively show piece moves.[All Comments] [Add Comment or Rating]
Aurelian Florea wrote on Mon, Jun 29, 2020 10:10 AM UTC:

I played against the AI in the interactive diagram .

when a pawn of mine has reached the promotion zone the promote menu has not appeared.

My guess is that the rank with brouhaha squares is counted as the final rank so the 3rd from last is unpromotable, the 2nd from last behaves as the 3rd from last should, and so on.


Betza notation (extended). The powerful XBetza extension to Betza's funny notation.[All Comments] [Add Comment or Rating]
Aurelian Florea wrote on Sat, Jun 27, 2020 02:13 AM UTC:

@HG,

Does the extended notation understand that the royal piece cannot move in certain ways out of check?

For example in orthodox chess the king cannot move out of check.

In my apothecary games the virgin king may make a knight or camel leap 1 rank back, but not out of check.


Apothecary Chess-Modern. Large board variant obtained through tinkering with known games.[All Comments] [Add Comment or Rating]
💡📝Aurelian Florea wrote on Sat, Jun 27, 2020 12:19 AM UTC:

Thank you, Greg!


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

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


💡📝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?


💡📝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.


💡📝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 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?


💡📝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 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?


💡📝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.


Fischer Random Chess. Play from a random setup. (8x8, Cells: 64) (Recognized!)[All Comments] [Add Comment or Rating]
Aurelian Florea wrote on Wed, Jun 24, 2020 02:14 AM UTC:

@HG,

I remembered seeing a diagram with randomized setup, but I cannot find it anymore.


Apothecary Chess-Modern. Large board variant obtained through tinkering with known games.[All Comments] [Add Comment or Rating]
💡📝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?


Apothecary Chess-Classic. Large board variant obtained through tinkering with known games.[All Comments] [Add Comment or Rating]
💡📝Aurelian Florea wrote on Tue, Jun 23, 2020 01:52 PM UTC:

HG,

I'm not sure what placement chess is.

I was wondering if the placement of the pieces may be done automatically. Can a javascript be written to do this. and after each restart another legitimate initial position can be generated.


💡📝Aurelian Florea wrote on Tue, Jun 23, 2020 12:34 PM UTC:

HG,

1. I still have not figured out how to make the squares, brouhaha

2. It may be a nice feature to display the brouhaha squares in a different colour

3.I don't think the shuffling works in this particular case (please read the article) but probably a javascript code is possible to do. Unfortuneatly I don't know Java script so if you can help me here I'd really apreciate it.


💡📝Aurelian Florea wrote on Tue, Jun 23, 2020 08:19 AM UTC:

HG,

About the king: It does not castle bun while virgin it may leap one rank back using a knight or camel jump. I am thinking that in xbetza is : KimbsLimbsN. Is it correct?

The pieces are missing beacuse they should be added by shuffling. But for now I can;t do this. It probably should be treated as a particular case as the algorithm for placing piece from this game is rather weird, but you had said it may be done by java script.

 

Also I want to see the brouhaha code and the 960 code.


Brouhaha. Like Chess, but it really brings the ruckus! (8x8, Cells: 72) [All Comments] [Add Comment or Rating]
Aurelian Florea wrote on Tue, Jun 23, 2020 07:07 AM UTC:

HG, 

I'm trying to see the code for the diagram bellow but I cannot. May you help me?


Apothecary Chess-Classic. Large board variant obtained through tinkering with known games.[All Comments] [Add Comment or Rating]
💡📝Aurelian Florea wrote on Tue, Jun 23, 2020 06:45 AM UTC:
files=10 ranks=12 holdingsType=1 promoZone=3 promoChoice=!P*N*B*L*E*R2*J2*Q1*C1*A1 graphicsDir=../graphics.dir/alfaerie/ whitePrefix=w blackPrefix=b graphicsType=gif squareSize=54 symmetry=mirror shuffle=A:BC,:BN,ACQ 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:NmZ:knight:c3,h3,,c10,h10:1 mamluk:L:WL:camel:d1,g1,,d12,g12:1 siege elephant:E:FAH:elephant:e1,h1,,e12,h12 joker:J:fI:fool:f1,,f12 Chancellor:C:RN:chancellor:i3,,i10 archbishop:A:BN:cardinal:b3,,b10 king:K:KimbsLimbsN:king:f3,,f10

Apothecary Chess-Modern. Large board variant obtained through tinkering with known games.[All Comments] [Add Comment or Rating]
💡📝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

Apothecary Chess-Classic. Large board variant obtained through tinkering with known games.[All Comments] [Add Comment or Rating]
💡📝Aurelian Florea wrote on Tue, Jun 23, 2020 04:29 AM UTC:

@Fergus,

I have moved the buggy code from the presets named apothecary-classic and apothecary-modern to the apothecary2working and apothecary1working.

The code I had mentioned before:

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;

introduces a bug.  Sometimes the message A King may not use the special moves out of check. is displayed seemingly randomly when non-king pieces are moved. That I had checked with the play at same location feature.

Have you any idea on how to fix this bug?


Apothecary Chess-Modern. Large board variant obtained through tinkering with known games.[All Comments] [Add Comment or Rating]
💡📝Aurelian Florea wrote on Tue, Jun 23, 2020 02:13 AM UTC:

I removed the buggy code. 

Now it should work!


Apothecary Chess-Classic. Large board variant obtained through tinkering with known games.[All Comments] [Add Comment or Rating]
💡📝Aurelian Florea wrote on Mon, Jun 22, 2020 11:55 AM UTC:

@Fergus,

I have copied the code from Apothecary-Modern here, and when I test the preset it seems fine, but when I try to move in an ongoing game of Apothecary Classic, I receive the error saying I've made special moves out of check.

Any idea why?


Apothecary Chess-Modern. Large board variant obtained through tinkering with known games.[All Comments] [Add Comment or Rating]
💡📝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;


💡📝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!


💡📝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!


💡📝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.


💡📝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.


💡📝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;


💡📝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 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


💡📝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 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).


Interactive diagrams. Diagrams that interactively show piece moves.[All Comments] [Add Comment or Rating]
Aurelian Florea wrote on Sat, Jun 13, 2020 07:14 PM UTC:

Great to hear this!


Betza notation (extended). The powerful XBetza extension to Betza's funny notation.[All Comments] [Add Comment or Rating]
Aurelian Florea wrote on Sat, Jun 13, 2020 03:29 PM UTC:

I had found a function called weird promotion. I'll get to it tommorrow. Thanks HG!...

 

Later Edit: I don't understand how the rule that states that you must have the pieces in reserve is implemented. 

I'll take a look on Grand chess also, I guess!


Chu Shogi. Historic Japanese favorite, featuring a multi-capturing Lion. (12x12, Cells: 144) (Recognized!)[All Comments] [Add Comment or Rating]
Aurelian Florea wrote on Sat, Jun 13, 2020 11:21 AM UTC:

I thought the AI would be easy picking but it is not :)!


Betza notation (extended). The powerful XBetza extension to Betza's funny notation.[All Comments] [Add Comment or Rating]
Aurelian Florea wrote on Sat, Jun 13, 2020 09:05 AM UTC:

HG,

If you have time to make the interactive diagrams AI work on the particular cases of chess960 (for the initial position randomness) and gross chess (for the promotion rule) I'd really apreciate it for my apothecary games as I think I would be able to do interactive diagrams on them, too.


Aurelian Florea wrote on Sat, Jun 13, 2020 07:52 AM UTC:

I was wondering about that :)!


Aurelian Florea wrote on Sat, Jun 13, 2020 04:07 AM UTC:

HG,

The script works wonderfully. Thanks! 

Microsoft edge got updated last night. I think this is why!


Game Courier. PHP script for playing Chess variants online.[All Comments] [Add Comment or Rating]
Aurelian Florea wrote on Sat, Jun 13, 2020 04:04 AM UTC:

No matter.

Now it works.

Microsoft edge got an update. I think that is the reason.

Thanks Fergus!


Betza notation (extended). The powerful XBetza extension to Betza's funny notation.[All Comments] [Add Comment or Rating]
Aurelian Florea wrote on Fri, Jun 12, 2020 06:53 PM UTC:

Why does the below diagram asks to put the gated piece on the board?


Aurelian Florea wrote on Fri, Jun 12, 2020 05:08 PM UTC:

ok!


Betza Notation. A primer on the leading shorthand for describing variant piece moves.[All Comments] [Add Comment or Rating]
Aurelian Florea wrote on Fri, Jun 12, 2020 04:36 PM UTC:

HG,

Have you made a documentation with all your additions to Betza notation?


Interactive diagrams. Diagrams that interactively show piece moves.[All Comments] [Add Comment or Rating]
Aurelian Florea wrote on Fri, Jun 12, 2020 03:09 PM UTC:

By shuffling i meant like in 960 indeed. I remember you doing the shuffling especially for this game but I then lost it when I lost the device where it was saved. Once I get to the interactive diagram on apothecary chess I will ask this favor of you. Thanks!


Chu Shogi. Historic Japanese favorite, featuring a multi-capturing Lion. (12x12, Cells: 144) (Recognized!)[All Comments] [Add Comment or Rating]
Aurelian Florea wrote on Fri, Jun 12, 2020 02:57 PM UTC:

I had managed to clear the cache but the error still goes. I use microsoft edge.


Aurelian Florea wrote on Fri, Jun 12, 2020 02:44 PM UTC:

Wow cool thing supporting the imitator. I remember earlier versions were not able. Does the AI work also with it? This could sound silly, but random initial positions are supported?


Aurelian Florea wrote on Fri, Jun 12, 2020 01:52 PM UTC:

And by the way, talking about previous moves, is there a way they will be taken into account as I am thinking about the joker in my apothecary chess game.


Aurelian Florea wrote on Fri, Jun 12, 2020 01:47 PM UTC:

The game started from regular initial position and it went like this : 1. Ng5 Cd11 2. e5 Ci11 3. j5 Nf8 4. h5 Tg10 5. Ng6 Nxg6 . I'm not sure what needs refreshing.


Aurelian Florea wrote on Fri, Jun 12, 2020 01:19 PM UTC:

@HG,

Hello,

I had just tried it and my advanced lyon defended by the DH got captured by the AI. I then tried it again. It seems to happend to player's lyon on 6th rank once the second dk pawn got moved. Maybe if you try reproducing such a position you may find the bug!...


Game Courier. PHP script for playing Chess variants online.[All Comments] [Add Comment or Rating]
Aurelian Florea wrote on Fri, Jun 12, 2020 06:25 AM UTC:

I got it. But in the "description of your submition" (I have earlier noticed that in other boxes of the same type.) I can't post any links as the ok button does not work in the url posting window.


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 04:23 PM UTC:

Hello Thor,

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


💡📝Aurelian Florea wrote on Thu, Jun 11, 2020 07:53 AM UTC:

@Thor

I had sent you an invitation with the new preset.


Apothecary Chess-Classic. 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.


Game Courier. PHP script for playing Chess variants online.[All Comments] [Add Comment or Rating]
Aurelian Florea wrote on Thu, Jun 11, 2020 07:48 AM UTC:

Hello Fergus,

Ok! I have done that. I have 2 questions though.

How do I get read of the old presets? I need a clean everything to start over.

Why the new presets for Apothecary Chess- Modern and Apothecary Chess- Classic (it is how I renamed the games) don't appear on the website in the games to play folder.


Sign in to the Chess Variant Pages. Sign in to the Chess Variant Pages.[All Comments] [Add Comment or Rating]
Aurelian Florea wrote on Thu, Jun 11, 2020 07:33 AM UTC:

I am receiving alerts again for a few weeks now.


Chu Shogi. Historic Japanese favorite, featuring a multi-capturing Lion. (12x12, Cells: 144) (Recognized!)[All Comments] [Add Comment or Rating]
Aurelian Florea wrote on Wed, Jun 10, 2020 11:23 AM UTC:

Good job, Adam!...


Brouhaha. Like Chess, but it really brings the ruckus! (8x8, Cells: 72) [All Comments] [Add Comment or Rating]
Aurelian Florea wrote on Tue, Jun 9, 2020 03:49 PM UTC:

It does not seem to work all the time!

Oh!.... That was the point of the diagram!!! Silly me!


Apothecary Chess-Classic. Large board variant obtained through tinkering with known games.[All Comments] [Add Comment or Rating]
💡📝Aurelian Florea wrote on Tue, Jun 9, 2020 03:19 PM UTC:

In the light of recent disuctions in the sister game, I have updated the rules for this game and brushed up a bit the article.

Also the preset allows the game to be played here.


Apothecary Chess-Modern. Large board variant obtained through tinkering with known games.[All Comments] [Add Comment or Rating]
💡📝Aurelian Florea wrote on Tue, Jun 9, 2020 03:16 PM UTC:

I have updated and brushed up the article for this game and the preset now is in working order (here). Thanks to all of you out there contributing with thoughts and especially Fergus for the help with the preset. Have fun guys!


Game Courier. PHP script for playing Chess variants online.[All Comments] [Add Comment or Rating]
Aurelian Florea wrote on Tue, Jun 9, 2020 08:57 AM UTC:

I'd like to modify the names of my apothecary1working preset to apothecary chess modern and apothecary2working preset to apothecary chess classic. If space cannot be used then an underscore is fine.


Apothecary Chess-Modern. Large board variant obtained through tinkering with known games.[All Comments] [Add Comment or Rating]
💡📝Aurelian Florea wrote on Mon, Jun 8, 2020 08:30 AM UTC:

The last thing I'd like to consider is that I'd like to try an unseen to my knowledge type of symmetry. The jokers will fill a place in the brouhaha squares but mirroring the center of the board like in mirror symmetry while the rest of the pieces have regular symmetry. This has the advantage of populating the board in a balanced way (as many pieces on both sides of the board), although one player will have a king side minor advantage while the other will have a non-king side minor advantage. I'd like to call this twist symmetry. Twist symmetry would mean that  we split the pieces of one side in two so that one part has mirror symmetry to the opponent while the other has regular symmetry. This concept resembles the mathematical concept of Chiral symmetry but I'm not sure about a proof that it is the same thing.

 

 https://www.chessvariants.com/play/pbm/diagram-designer.php?submit=Update&code=---jww----%2Fr3cc3r%2F1abngknbq1%2Fpppppppppp%2F10%2F10%2F10%2F10%2FPPPPPPPPPP%2F1ABNGKNBQ1%2FR3CC3R%2F----WWJ---&shape=square&scale=100&group=Apothecary+Chess&set=apothecary-standard&files=a+b+c+d+e+f+g+h+i+j+&ranks=0+1+2+3+4+5+6+7+8+9+10+11&font=Verdana&point=12&cols=10&board=23.10.01.10.01.10.01.10.01.10.01.32.&colors=339933+CCCC11+DD99DD+FFBBFF&bcolor=111199&tcolor=EEEE22&bsize=16&bgimage=maple-walnut.png&nextfile=50+0&nextrank=0+50 

 


💡📝Aurelian Florea wrote on Sun, Jun 7, 2020 11:07 AM UTC:

@Thor,

Programming the brouhaha squares in game code is quite easy. In C++ or another language for an engine I'm not sure!


💡📝Aurelian Florea wrote on Sun, Jun 7, 2020 11:05 AM UTC:

@HG,

That one turn delay makes the game possible, and quite fun in my experience! These principles came up from 4 years of testing with human players!


💡📝Aurelian Florea wrote on Sun, Jun 7, 2020 08:57 AM UTC:

@HG,

Withouht the brouhaha squares the wizard may quickly capture powerfull pieces in the opening. That was the initial idea but it does not work! Also, this way rooks stay conected.


💡📝Aurelian Florea wrote on Sun, Jun 7, 2020 06:27 AM UTC:

@Thor,Greg&Fergus

Thanks guys for your thoughts on the matter.

So the crux of the matter it is that the dropping of the joker is not needed but the initial position should be given further consideration. What about then adding another brouhaha square for the joker? This would mean a champion more to the side. King in it's original position. King keeps special initial moves.

https://www.chessvariants.com/play/pbm/diagram-designer.php?submit=Update&code=---wcjwc--%2Fr8r%2F1abngknbq1%2Fpppppppppp%2F10%2F10%2F10%2F10%2FPPPPPPPPPP%2F1ABNGKNBQ1%2FR8R%2F---WCJWC--&shape=square&scale=100&group=Apothecary+Chess&set=apothecary-standard&files=a+b+c+d+e+f+g+h+i+j+&ranks=0+1+2+3+4+5+6+7+8+9+10+11&font=Verdana&point=12&cols=10&board=23.10.01.10.01.10.01.10.01.10.01.32.&colors=339933+CCCC11+DD99DD+FFBBFF&bcolor=111199&tcolor=EEEE22&bsize=16&bgimage=maple-walnut.png&nextfile=50+0&nextrank=0+50


100 comments displayed

LatestLater Reverse Order EarlierEarliest

Permalink to the exact comments currently displayed.