The Chess Variant Pages
Custom Search




[ 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 Aurelian Florea

LatestLater Reverse Order EarlierEarliest
Apothecary chess preset error[Subject Thread] [Add Response]
Aurelian Florea wrote on 2020-08-30 UTC

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


Aurelian Florea wrote on 2020-08-28 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 2020-08-28 UTC

Please try again!


Aurelian Florea wrote on 2020-08-28 UTC

@Greg, Are things ok now?


Aurelian Florea wrote on 2020-08-26 UTC

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 2020-08-23 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 2020-08-22 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 2020-08-22 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 2020-08-21 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?


This item is a game information page
It belongs to categories: Orthodox chess, 
It was last modified on: 2020-04-21
 By Daniel  Zacharias. Expanded Chess. An attempt at a logical expansion of Chess to a 10x10 board.[All Comments] [Add Comment or Rating]
Aurelian Florea wrote on 2020-08-16 UTC

Ok!


Aurelian Florea wrote on 2020-08-16 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.


This item is an unknown type!
It belongs to categories: Orthodox chess, 
It was last modified on: 2003-09-09
 Author: Fergus  Duniho. Game Courier Logs. View the logs of games played on Game Courier.[All Comments] [Add Comment or Rating]
Aurelian Florea wrote on 2020-08-11 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?


UPDATED! This item is a play-by-email page
It belongs to categories: Orthodox chess, 
It was last modified on: 2020-10-03
 By Aurelian  Florea. Apothecary Chess-Classic. (Updated!) Large Board variant obtained trough tinkering with known games.[All Comments] [Add Comment or Rating]
Aurelian Florea wrote on 2020-07-23 UTC

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


UPDATED! This item is a play-by-email page
It belongs to categories: Orthodox chess, 
It was last modified on: 2020-10-03
 By Aurelian  Florea. Apothecary Chess-Modern. (Updated!) Large Board variant obtained trough tinkering with known games.[All Comments] [Add Comment or Rating]
Aurelian Florea wrote on 2020-07-23 UTC

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


This item is a game information page
It belongs to categories: Orthodox chess, 
It was last modified on: 2020-04-29
 By wdtr2. FrogsAndPrincess. Based on Princess and the Frog Story.[All Comments] [Add Comment or Rating]
Aurelian Florea wrote on 2020-07-22 UTC

In the description of the camel you had said that the wazir makes a diagonal slide but it does an orthogonal slide!


This item is a game information page
It belongs to categories: Orthodox chess, 
It was last modified on: 2020-01-30
 By Aurelian  Florea. Apothecary Chess-Classic. Large board variant obtained through tinkering with known games.[All Comments] [Add Comment or Rating]
Aurelian Florea wrote on 2020-07-22 UTC

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


Aurelian Florea wrote on 2020-07-22 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 2020-07-22 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 2020-07-21 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 2020-07-21 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?


This item is a miscellaneous item
It belongs to categories: Orthodox chess, 
It was last modified on: 2015-12-11
 Author: Fergus  Duniho. Home page of The Chess Variant Pages. Missing description[All Comments] [Add Comment or Rating]
Aurelian Florea wrote on 2020-07-09 UTC

I have the same problem.

Probably Fergus is working for something new.


This item is a game information page
It belongs to categories: Orthodox chess, 
It was last modified on: 2020-01-30
 By Aurelian  Florea. Apothecary Chess-Classic. Large board variant obtained through tinkering with known games.[All Comments] [Add Comment or Rating]
Aurelian Florea wrote on 2020-07-06 UTC

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


Aurelian Florea wrote on 2020-07-06 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.


This item is a game information page
It belongs to categories: Orthodox chess, 
It was last modified on: 2020-01-30
 By Aurelian  Florea. Apothecary Chess-Modern. Large board variant obtained through tinkering with known games.[All Comments] [Add Comment or Rating]
Aurelian Florea wrote on 2020-07-04 UTC

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


Aurelian Florea wrote on 2020-07-03 UTC

@ Greg,

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


25 comments displayed

LatestLater Reverse Order EarlierEarliest

Permalink to the exact comments currently displayed.