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 Latest Comments Only For Pages | Games | Rated Pages | Rated Games | Subjects of Discussion ]

Ratings & Comments

LatestLater Reverse Order EarlierEarliest
2.Manticore and 2. Griffin ?[Subject Thread] [Add Response]
Bn Em wrote on Mon, Aug 9, 2021 09:42 PM UTC in reply to Aurelian Florea from Thu Aug 5 09:10 AM:

Ok so you are indeed including the 1‐step move among the movement possibilities — I suppose your ‘2.manticore’ is different enough from a lame/stepping/blockable osprey/lama (and mutatis mutandis for the ‘2.gryphon’) to merit a different name… maybe. If it's not being distinguished from a ‘true’ osprey/zephyr in a single game I'd be tempted to leave that name as is, though avoiding going too near overlexicalisation is a personal preference.

If the distinction does need to be made within a game (at which point the tradeoff changes imo), then ‘2.manticore’(/‘2.griffon’) is probably fine, if perhaps closer to the (presumably also present in a game featuring both of these) actual manticore/griffin than might be desirable, though I'm not really one to ask for original name suggestions (and M&B13 is apparently lacking names for lama/rook and zephyr/bishop compound with which we could (ab)use M&B8's ‘‐lander’ suffix). Perhaps a name based on lama/zephyr/osprey/ostrich/whatever you want to call them would be more apt? ‘Running Osprey’ isn't altogether without a ring to it…


The birth of 3 new variants - part 2 : Grand Apothecary Chess Modern[Subject Thread] [Add Response]
H. G. Muller wrote on Mon, Aug 9, 2021 08:06 PM UTC:

You already made an Interactive Diagram that does the Pawn move and the castling in the way you want, right? All you have to do is paste the description of that diagram (without any HTML tags) into the Play-Test Applet, (where it says "paste an existing diagram"), and click the 'Game code' button.


Aurelian Florea wrote on Mon, Aug 9, 2021 07:59 AM UTC in reply to H. G. Muller from Thu Jul 15 07:03 PM:

@HG Muller

@Aurelian: Just out of curiosity: what happens when you use the Play-Test Applet to convert the Interactive Diagram you made to GAME code? Does the castling work as intended then?

I'm not sure I know how to do this. I have read this:

https://www.chessvariants.com/invention/game-code-generation

but I did not understood how to do the weird castling, or something that needs doing in game code like initial pawn pushes. (the * in Xbetza).


Possible bug in Grand Cavalier Chess[Subject Thread] [Add Response]
🕸Fergus Duniho wrote on Mon, Aug 9, 2021 02:15 AM UTC in reply to wdtr2 from Sun Aug 8 08:50 PM:

Here is the relevant rule:

When there are no captured pieces a Cavalier may promote to, it may not move to the last rank, though it may still check the Eques Rex on the last rank.

Is there a violation of this rule?


wdtr2 wrote on Sun, Aug 8, 2021 08:50 PM UTC:

I think I may have found an issue in Grand Cavalier Chess. In Self-play mode - 2 people on same PC. The Cavalier (Knight Pawn) is not able to get to the last rank for capture or promotion.

===

Question: according to the rules If you do not have any captured pieces the Cavalier can not promote. Can it go to the last rank for a capture and not promote if you have no captured pieces? ===

Can you check this?

Thank you.

Jim


Apothecary Chess Tournament[Subject Thread] [Add Response]
Erik Lerouge wrote on Sun, Aug 8, 2021 03:49 PM UTC:

Hello Aurelian,

Sorry I didn't see that the last round has begun. It's true that my e-mail is not visible. I could have given it to you (or you could have asked me:) at the start of the tournament...

Sorry, I don't play long-term correspondence games anymore. So I resign for my last games and I give the victory to my opponent Daniel. Congratulations for all the participants, and for Aurelian for creating Apothecary Chess! The 3rd round games I play against Daniel were particularly intense from beginning to end.


Aurelian Florea wrote on Thu, Aug 5, 2021 10:32 AM UTC in reply to Aurelian Florea from Tue Aug 3 03:51 AM:

Unfortunately Erik has not logged in since May and I don't know how to contact him. Any ideas?


2.Manticore and 2. Griffin ?[Subject Thread] [Add Response]
Aurelian Florea wrote on Thu, Aug 5, 2021 09:13 AM UTC in reply to Jean-Louis Cazaux from Wed Aug 4 08:05 AM:

@Jean-louis

Agreed but these are not the pieces I am talking about. I'm saying a piece that starts like a rook for the first 2 steps and then it goes towards outside like a bishop. So this 2. Maticore would be able to stop or be blocked at wazir sqaures.


Aurelian Florea wrote on Thu, Aug 5, 2021 09:10 AM UTC in reply to Bn Em from Wed Aug 4 01:08 AM:

@Bn Em I meant a piece that takes the first 2 steps like a rook and then towards outside like a bishop. The osprey jumps as a dabbabah and then moves towards outside like a bishop. So they are not the same piece.


Jean-Louis Cazaux wrote on Wed, Aug 4, 2021 08:05 AM UTC in reply to Bn Em from 01:08 AM:

In wikipedia Fairy chess pieces they are the Osprey for DthenB and the Ostrich for AthenR


Bn Em wrote on Wed, Aug 4, 2021 01:08 AM UTC in reply to Aurelian Florea from Sat Jun 12 12:30 PM:

Charles Gilman called these Zephyr and Lama respectively, though by his description they cannot make the one‐step move that I'm not sure whether you're including. The latter also turns up as an Osprey in Expanded Chess


Apothecary Chess Tournament[Subject Thread] [Add Response]
Aurelian Florea wrote on Tue, Aug 3, 2021 03:51 AM UTC:

I have assigned the round six games!


The birth of 3 new variants - part 2 : Grand Apothecary Chess Modern[Subject Thread] [Add Response]
Aurelian Florea wrote on Fri, Jul 23, 2021 07:22 AM UTC in reply to Fergus Duniho from Wed Jul 21 05:19 PM:

With your piece of code I have tested my idea and made it work as intended. Thanks once again, Fergus!


Aurelian Florea wrote on Thu, Jul 22, 2021 04:49 AM UTC:

Thank you, Fergus!


🕸Fergus Duniho wrote on Wed, Jul 21, 2021 05:19 PM UTC in reply to Aurelian Florea from Tue Jul 20 01:38 PM:

I still need to understand how to delete a value from an array in order to remove the necessary value from wcastle or bcastle.

You can unset an array element if you know its key. For example:

set ra array a b c d e f g h i j k l m n o p q r;
unset ra.4; // removes e from array

But what if you just know the element you want to delete and not its key? I have now added a diff operator to return an array difference. When an argument isn't already an array, it gets turned into a single element array. So, this code removes j1 from wcastle.

set wcastle d1 c1 j1 k1;
set wcastle diff #wcastle j1;

Aurelian Florea wrote on Tue, Jul 20, 2021 01:38 PM UTC in reply to Fergus Duniho from Thu Jul 15 05:36 PM:

@Fergus,

I still need to understand how to delete a value from an array in order to remove the necessary value from wcastle or bcastle.


Aurelian Florea wrote on Fri, Jul 16, 2021 03:00 PM UTC in reply to H. G. Muller from Thu Jul 15 07:03 PM:

No ideea I'll Try it!


H. G. Muller wrote on Thu, Jul 15, 2021 07:03 PM UTC:

@Aurelian: Just out of curiosity: what happens when you use the Play-Test Applet to convert the Interactive Diagram you made to GAME code? Does the castling work as intended then?


🕸Fergus Duniho wrote on Thu, Jul 15, 2021 05:36 PM UTC in reply to Aurelian Florea from 07:57 AM:

I do not understand why after I move the rook I can castle with the cannon on the field that was supposed to be used only for the rook.

So far, you have not made it clear that the King moves to a different space when castling with each piece. The rules you have underneath the game do not even mention castling. The castle subroutine was not written with such a rule in mind. You might be able to make it work by adjusting the values of bcastle and wcastle after a Rook moves.

I think I haven't explained that properly but only one castle is aloud.

Castling is allowed only once, which I understand, but what you say next doesn't fit with you trying to say that. Are you trying to say that the King has only once space it can go to when castling with a certain piece?

Regarding your preset, I don't understand why you are using four colors for checkering the board. Also, the dark blue squares do not contrast well with the color used for highlighting legal moves, which makes it hard to see legal moves highlighted on those squares. Additionally, your rules could use images of the pieces, so that someone looking at a piece on the board can more easily tell how it moves. Remember to use the shortcodes for displaying pieces, so that the piece images below match those on the board no matter what piece set is used.


Aurelian Florea wrote on Thu, Jul 15, 2021 07:57 AM UTC in reply to Fergus Duniho from Tue Jul 13 03:38 PM:

@Fergus Then I do not understand why after I move the rook I can castle with the cannon on the field that was supposed to be used only for the rook. I think I haven't explained that properly but only one castle is aloud. This is not free castling. So this is why I asked about wcastle and bcastle.


Test[Subject Thread] [Add Response]
🕸Fergus Duniho wrote on Tue, Jul 13, 2021 04:22 PM UTC in reply to Fergus Duniho from 04:15 PM:

Replying from Chrome on my Likebook Mars without being signed in first.


🕸Fergus Duniho wrote on Tue, Jul 13, 2021 04:15 PM UTC:
Adding response with Chrome on my Likebook Mars without being signed in first.

🕸Fergus Duniho wrote on Tue, Jul 13, 2021 03:56 PM UTC in reply to Fergus Duniho from 03:54 PM:

Replying from Chrome on my Likebook Mars.


🕸Fergus Duniho wrote on Tue, Jul 13, 2021 03:54 PM UTC:
Adding response from Chrome on my Likebook Mars.

🕸Fergus Duniho wrote on Tue, Jul 13, 2021 03:47 PM UTC:

Posting from Chrome in Windows 10.


The birth of 3 new variants - part 2 : Grand Apothecary Chess Modern[Subject Thread] [Add Response]
🕸Fergus Duniho wrote on Tue, Jul 13, 2021 03:38 PM UTC in reply to Aurelian Florea from 11:51 AM:

What I still need to do is delete a variable from wcastle or bcastle as the rook gets moved.

That shouldn't be necessary, as other factors will determine that future castling moves are illegal without doing this.

How do I delete a value from an array?

Once the King has castled, it might be a bit of an optimization if you set wcastle or bcastle to an empty array, but it shouldn't be necessary.


Aurelian Florea wrote on Tue, Jul 13, 2021 11:51 AM UTC:

@Fergus,

I am almost done with the castling. It was not that hard. I have left the normal stalemated subroutine which took care properly of the moves display. Also I am handling the flag sets and unsets properly as far as I can see. What I still need to do is delete a variable from wcastle or bcastle as the rook gets moved. How do I delete a value from an array?


🕸Fergus Duniho wrote on Mon, Jul 12, 2021 05:44 PM UTC in reply to Aurelian Florea from 08:28 AM:

Why in the castle subroutine in fairychess.txt include file the line unsetflag #RPOS; is commented?

I suppose it could be uncommented if you wanted to be thorough, but it isn't necessary to prevent illegal castling. Once the King has moved, the space it moves from and the space it moves to both get unflagged, and every space the King moves to gets unflagged. So, no matter what, the King is still unable to castle. As long as the King can't castle, nothing can castle with the King. So, leaving a flag on the Rook's original space doesn't change anything critical to the game.


Aurelian Florea wrote on Mon, Jul 12, 2021 08:28 AM UTC in reply to Fergus Duniho from Thu Jul 8 08:36 PM:

@Fergus,

Why in the castle subroutine in fairychess.txt include file the line unsetflag #RPOS; is commented?


🕸Fergus Duniho wrote on Thu, Jul 8, 2021 08:36 PM UTC in reply to Aurelian Florea from 08:28 AM:

I think I accidentally deleted a comment while deleting some test comments.

1.The castling moves are not shown although they work.

The code for this goes in the stalemated subroutine, and here is what you have in that subroutine:

// Castling code removed, since Apothecary Chess does not include castling.

So you need to add some code for it there. You can probably borrow some from the one in the fairychess include file. I'm not sure if it will require any modification. Try it without modification first and see how it works.


🕸Fergus Duniho wrote on Thu, Jul 8, 2021 04:32 PM UTC in reply to Aurelian Florea from 08:28 AM:
  1. The long cannon castle is not done entirely although the king moves correctly.

You don't seem to be unflagging spaces properly. I confirmed that you left the Rook's space unflagged by moving the Rook back after moving it and then castling with it. When the Rook's space remains flagged, you will not be able to castle with the Cannon. You should do as I do in Chess, which is to unflag every space moved to or from. The code used in Chess is

unsetflag $origin $dest;

🕸Fergus Duniho wrote on Thu, Jul 8, 2021 02:03 PM UTC in reply to Aurelian Florea from 08:28 AM:

Test. I keep getting the error message, "There is no comment to post."


Aurelian Florea wrote on Thu, Jul 8, 2021 01:20 PM UTC in reply to Fergus Duniho from 12:18 PM:

I have repeated all my tests. The same two problems appear.


🕸Fergus Duniho wrote on Thu, Jul 8, 2021 12:18 PM UTC in reply to Aurelian Florea from 08:28 AM:

set wcastle d1 c1 j1 k1; set bcastle d12 c12 j12 k12;

From these, I gather that the King lies somewhere between d and j.

setflag a1 b1 k1 l1; setflag a12 b12 k12 l12;

But here, nothing is flagged between d and j. Make sure to flag every single piece that can castle, including the King.


🕸Fergus Duniho wrote on Thu, Jul 8, 2021 11:49 AM UTC in reply to Aurelian Florea from 08:28 AM:

Can you give me a link to the preset you're working on?


Aurelian Florea wrote on Thu, Jul 8, 2021 08:28 AM UTC:

@Fergus, Now I am trying to make the castling work.

The king is supposed to be able to castle with a rook by moving 3 spaces towards it or with a cannon by moving 4 spaces towards it, Usual conditions apply. I have used the following flags and variables:

set wcastle d1 c1 j1 k1; set bcastle d12 c12 j12 k12; setflag a1 b1 k1 l1; setflag a12 b12 k12 l12;

I have 2 problems. 1.The castling moves are not shown although they work. 2. The long cannon castle is not done entirely although the king moves correctly.


Aurelian Florea wrote on Thu, Jul 8, 2021 07:46 AM UTC:

@Fergus,

Brilliant, it works and I understood them well enough to be able to make even other pieces.


🕸Fergus Duniho wrote on Wed, Jul 7, 2021 11:50 PM UTC in reply to Aurelian Florea from 06:43 AM:
Since the Tiger has an extra challenge, I thought I would try it too. The following code has been tested to work on an empty 16x16 board and with various positions blocked. def Tiger checkride #ts #1 1 1 and checkride #0 #ts 1 0 and empty #ts =ts where #0 * 3 * sign #fd == abs #rd #n * 3 * sign #rd == abs #fd #n and == #n min abs #fd abs #rd =fd - file #1 file #0 =rd - rank #1 rank #0 =n - #d 3 and > #d 3 or and checkride #0 #1 1 0 <= #d 3 =d distance #0 #1 or fn Elephant #0 #1; The challenge was in figuring out how to avoid checking two different Bishop moves. This meant figuring out the precise value for ts instead of testing two possible values for it. Within each quadrant, each possible destination could be defined as a variation on either (n, n+3) or (n+3, n). The variations would include -n or -(n+3). To get the precise value for ts, I had to identify the quadrant and which form the destination had. I could identify the quadrant through the sign of fd and rd, and I could identify the form by checking whether rd or fd had an absolute value equal to n.

🕸Fergus Duniho wrote on Wed, Jul 7, 2021 08:38 PM UTC in reply to Fergus Duniho from 06:12 PM:
This also works: def Lyon checkride #ts #1 0 1 and checkride #0 #ts 1 1 and empty #ts =ts where #0 * 2 sign #fd * 2 sign #rd and == 2 min abs #fd abs #rd =fd - file #1 file #0 =rd - rank #1 rank #0 or and checkride #0 #1 1 1 <= distance #0 #1 2 or fn Dabbabah #0 #1; There are two main changes. Instead of "and match 2 abs #fd abs #rd", it now has "and == 2 min abs #fd abs #rd". Besides checking that one value is equal to 2, it also confirms that the other value is greater than or equal to 2. This rules out spaces that could be reached by a Knight's leap. This change allows the Rook move to be checked with a single checkride instead of two different checkarides with calculated values. In the tests I ran, it gave the same results as the previous Lyon function.

🕸Fergus Duniho wrote on Wed, Jul 7, 2021 06:12 PM UTC in reply to Aurelian Florea from 06:43 AM:

Since Markdown altered your code by removing the multiplication operators, and HTML interprets the less than sign as the beginning of a tag, I am responding in Text. Here is your code for the Lyon: def Lyon fn (checkride #0 #1 1 0 and empty #0) where #0 * 2 sign - file #1 file #0 * 2 sign - rank #1 rank #0 #1 and not fn Knight #0 #1 or and checkride #0 #1 1 1 <= distance #0 #1 2 or fn Dabbabah #0 #1; To rule out regular Rook moves, this should fix it. This produced the correct pattern on an empty 8x8 board with e4 as the origin and also when I blocked the diagonal move at f5. def Lyon checkaride #ts #1 0 sign #rd or checkaride #ts #1 sign #fd 0 and checkride #0 #ts 1 1 and empty #ts =ts where #0 * 2 sign #fd * 2 sign #rd and match 2 abs #fd abs #rd =fd - file #1 file #0 =rd - rank #1 rank #0 or and checkride #0 #1 1 1 <= distance #0 #1 2 or fn Dabbabah #0 #1; Instead of using a lambda function, this assigns values to variables that get reused. These are rd for rank distance, fd for file distance, and ts for turning space. After calculating fd and rd, it makes sure that one of them has an absolute value of 2. It then uses them to calculate ts. After checking that ts is empty, it checks that a diagonal move from #0 to #ts is legal, and it then uses the value of fd or rd with checkaride for checking a Rook move in a specific direction from #ts to #1. It first checks for a Rook move along the file of ts. If that returns false, it then checks for a Rook move along the rank of ts. When I tried checkride #ts 1 1 0, it gave inaccurate results. The following code gave the right results on an empty board, but it gave false positives when I blocked it on f5. def Lyon fn (checkride #0 #1 1 0 and empty #0) where #0 * 2 sign - file #1 file #0 * 2 sign - rank #1 rank #0 #1 and not fn Knight #0 #1 and not checkride #0 #1 1 0 or and checkride #0 #1 1 1 <= distance #0 #1 2 or fn Dabbabah #0 #1; I will let you figure out how to fix the Tiger, since you should have more of a clue now.


Aurelian Florea wrote on Wed, Jul 7, 2021 06:43 AM UTC:

@Fergus

I am trying to write the game code for 2 new pieces I want for my newest chess variants. The first, a bent rider, called the lion should move like a bishop for 2 squares and then towards outside like a rook. It may also move like a dabbabah. I have written the code bellow that has the problem that allows the final rook moves without checking for the first bishop part of the move. Please take a look:

def Lyon

fn (checkride #0 #1 1 0 and empty #0)

where #0 2 sign - file #1 file #0 2 sign - rank #1 rank #0 #1

and not fn Knight #0 #1

or and checkride #0 #1 1 1 <= distance #0 #1 2

or fn Dabbabah #0 #1;

The second, it is also a bent rider, called the tiger should move like a rook for 3 squares and then towards outside like a bishop. It may also move like an alfil. In the same way as before the bishop moves are allowed by my code whitout checking the rook ride. Code so far:

def Tiger

fn (checkride #0 #1 1 1 and empty #0)

where #0 0 * 3 sign - rank #1 rank #0 #1

or fn (checkride #0 #1 1 1 and empty #0)

where #0 * 3 sign - file #1 file #0 0 #1

and not fn Knight #0 #1

or and checkride #0 #1 1 0 <= distance #0 #1 3

or fn Elephant #0 #1;

I could not find code that block the ride in the first part.


What is the ct table?[Subject Thread] [Add Response]
🕸Fergus Duniho wrote on Fri, Jul 2, 2021 01:50 PM UTC in reply to Ben Reiniger from 01:21 AM:

Okay, I dropped it.


Ben Reiniger wrote on Fri, Jul 2, 2021 01:21 AM UTC in reply to Fergus Duniho from Wed Jun 30 05:35 PM:

That's probably fine, yes.


Migrating link pages to database[Subject Thread] [Add Response]
🕸Fergus Duniho wrote on Thu, Jul 1, 2021 02:17 AM UTC:

I have begun migrating our early link pages to the database. This provides the following advantages:

  • It makes broken links easier to fix.
  • It makes link pages easier to edit.
  • It gives link pages a more uniform URL.
  • It gives me the opportunity to find broken links and fix them, or to delete link pages that are no longer useful.
  • Having all links in the database will make it easier to write and deploy a site-wide link checker.

As I migrate old link pages to the database, I am adding the old url and the new itemid to a table called RelocatedPages. This table will be used by the 404 script to point visitors toward the new link pages. It may also be used for any other HTML pages we eventually migrate to the database. But for now, I'm making link pages the first priority.


What is the ct table?[Subject Thread] [Add Response]
🕸Fergus Duniho wrote on Wed, Jun 30, 2021 05:35 PM UTC in reply to Ben Reiniger from 02:12 PM:

It can be deleted then?


Ben Reiniger wrote on Wed, Jun 30, 2021 02:12 PM UTC:

It looks like the Game Courier play-counts, but I'm not sure how it got there.

I build such a table in the ad hoc reporting page, but I don't write it back to the database. I could have created it at some point in developing the script? (The script's last change was in Dec 2018.)


🕸Fergus Duniho wrote on Wed, Jun 30, 2021 01:25 PM UTC:

The database has a table called ct. Its two columns are Game and Count. What is this for?


Apothecary Chess Tournament[Subject Thread] [Add Response]
🕸Fergus Duniho wrote on Wed, Jun 30, 2021 01:08 AM UTC in reply to Aurelian Florea from Sun Jun 27 05:48 PM:

It's name is that: "Apothecary Chess Tournament 1st Edition" . But I do not know it's ID!

I believe that's also its id, though you have to enter plus signs for the spaces. I corrected the link placed in the Related Pages menu. It was missing the play directory, because it was originally on the play subdomain. If you check the "This Tournament" link in the menu, it should now list the games in the tournament.


The new editcomment.php script[Subject Thread] [Add Response]
Ben Reiniger wrote on Tue, Jun 29, 2021 12:09 AM UTC:

Is there any appetite for supporting markdown for member submitted pages? (I've caught myself trying to enter markdown already...)


Apothecary Chess Tournament[Subject Thread] [Add Response]
Aurelian Florea wrote on Sun, Jun 27, 2021 05:48 PM UTC in reply to Fergus Duniho from 04:56 PM:

It's name is that: "Apothecary Chess Tournament 1st Edition" . But I do not know it's ID!


🕸Fergus Duniho wrote on Sun, Jun 27, 2021 04:56 PM UTC in reply to Aurelian Florea from 08:58 AM:

I cannot find the matches in the Apothecary Chess Tournament 1st Edition anymore.

What is the tournament id?


Aurelian Florea wrote on Sun, Jun 27, 2021 08:58 AM UTC:

@Fergus: I cannot find the matches in the Apothecary Chess Tournament 1st Edition anymore.


Chess, Math, & Science[Subject Thread] [Add Response]
Aurelian Florea wrote on Fri, Jun 25, 2021 04:09 PM UTC in reply to Ben Reiniger from 03:27 PM:

@Ben, Good one!... I have posted a while ago something about infinite chess an I was wondering even back then about of such a topic.


Ben Reiniger wrote on Fri, Jun 25, 2021 03:27 PM UTC:

I'm starting this subject thread for broad submissions of mathematical or scientific subjects that involve chess.

To kick it off, 3D chess is Turing Complete.


The birth of 3 new variants - part 1 : Grand Apothecary Chess Alert[Subject Thread] [Add Response]
🕸Fergus Duniho wrote on Tue, Jun 22, 2021 02:01 PM UTC in reply to Aurelian Florea from Fri Jun 4 01:33 PM:

According to the comments preceding the castle subroutine, you need to flag the spaces of pieces that may legally castle. The subroutine does not care what the pieces are. If you flag both the rook and the cannon, it will, once other conditions pertain, initially allow castling with the rook, but if the rook moves out of the way, it will allow castling with the cannon.


Aurelian Florea wrote on Tue, Jun 22, 2021 06:05 AM UTC in reply to Fergus Duniho from Mon Jun 21 11:04 PM:

I don't understand your question, Fergus. I think I have explained it above.


🕸Fergus Duniho wrote on Mon, Jun 21, 2021 11:04 PM UTC in reply to Aurelian Florea from Fri Jun 4 01:33 PM:

A third thing if I may ask in these game the king may castle in 2 ways with the rook that starts near the corner of the board or with the corner cannon. Omega chess implements a castle move with a non corner piece. Can I combine this with the regular castling subroutine in order to easily make my castle subroutine work?

What castling rule do you want it to work for?


🕸Fergus Duniho wrote on Mon, Jun 21, 2021 10:53 PM UTC in reply to Aurelian Florea from Sat Jun 19 04:00 PM:

Could you find the time to also solve for berolina pawns the problem that regular pawns used to have in fairychess.txt

Okay, I've done that.


Aurelian Florea wrote on Sat, Jun 19, 2021 04:00 PM UTC in reply to Fergus Duniho from Wed Jun 16 06:47 PM:

@Fergus,

Could you find the time to also solve for berolina pawns the problem that regular pawns used to have in fairychess.txt


Improving Typography[Subject Thread] [Add Response]
🕸Fergus Duniho wrote on Thu, Jun 17, 2021 10:13 PM UTC:

I want to thank those who gave feedback. I was trying to solve specific problems, and feedback helped me learn that solutions I found acceptable were not acceptable to others, which prompted me to find other solutions that worked better.


The birth of 3 new variants - part 1 : Grand Apothecary Chess Alert[Subject Thread] [Add Response]
Aurelian Florea wrote on Wed, Jun 16, 2021 06:54 PM UTC in reply to Fergus Duniho from 06:47 PM:

Thank you!


🕸Fergus Duniho wrote on Wed, Jun 16, 2021 06:47 PM UTC in reply to Aurelian Florea from 04:30 PM:

I can't figure it why but I have a green background and a blue highlight.

At some point, I started using highlight color instead. I included this in the form players could use to customize the appearance of a game, but I neglected to add it to the Edit form used by game designers. I have now added it in.


Aurelian Florea wrote on Wed, Jun 16, 2021 04:30 PM UTC in reply to Fergus Duniho from 03:14 PM:

I can't figure it why but I have a green background and a blue highlight. Look here, please:

https://www.chessvariants.com/play/pbm/play.php?game=Grand+Apothecary+Chess+1&settings=Default


🕸Fergus Duniho wrote on Wed, Jun 16, 2021 03:14 PM UTC in reply to Aurelian Florea from Thu Jun 3 04:29 AM:

Fergus, What about the ability of changing the blue color of the highlighting when showing possible moves.

It uses the border color to highlight possible moves.


Aurelian Florea wrote on Wed, Jun 16, 2021 11:44 AM UTC:

@Fergus, Hello,

I had asked 3 questions on this thread 2 weeks ago. It seems that you have missed them. Can you find time to take a look?


2.Manticore and 2. Griffin ?[Subject Thread] [Add Response]
Aurelian Florea wrote on Sat, Jun 12, 2021 12:30 PM UTC:

I was thinking at bent riders that take 2 steps and then bend and keep going to that direction. This would be called very plastically Rook2 then bishop and Bishop2 then Rook. Would 2.Manticore and 2.Griffon be good names for them?


Improving Typography[Subject Thread] [Add Response]
🕸Fergus Duniho wrote on Thu, Jun 10, 2021 10:15 PM UTC:

I have adjusted the em values for the headings so that specific integer pixel values will be used when the body font is 16px. These are 36px for H1, 32 for H2, 29 for H3, 26 for H4, 21 for H5, and 18 for H6. Instead of making the differences the same between each pair of neighboring headings, I used smaller differences where the style changed more, and I put a distance of .5em (8px) between distant headings using the same style.


🕸Fergus Duniho wrote on Thu, Jun 10, 2021 09:43 PM UTC:

Instead of setting the body text at 18px, I have erased code for setting the size of the body text, so that it will now use the system default. On the Windows desktop, at least, this is typically 16px. I checked multiple devices, and on each one, it seemed to make the text smaller, though Android and iOS devices did not let me inspect the elements and determine the precise size.

One reason for making this change is that Literata, which is now the body font instead of Lora, has a clearer look at smaller sizes. Another is that it should make the display more responsive to particular devices. Instead of using a fixed size across all devices, it lets the device determine the size. Also, I had previously set the font-size for comments to 16px, and I haven't had trouble reading comments. However, comments will now display text at the same size as the main content instead of at a smaller size. So, comments should generally display at the same size as they used to. Finally, the font size will now better match whatever zoom level someone prefers to use his browser at.

Since the heading sizes are defined with the em unit, which is determined by the body font size, they adjust according to the body font size. So, with the body font a bit smaller on most devices, the headings will also be a bit smaller.


H. G. Muller wrote on Thu, Jun 10, 2021 06:24 PM UTC in reply to Fergus Duniho from 05:42 PM:

But can you also do that with headers?


🕸Fergus Duniho wrote on Thu, Jun 10, 2021 05:42 PM UTC in reply to H. G. Muller from 03:54 PM:

Someone might want to add paragraphs in a smaller-than-standard font.

If you want small text, you can enclose your text in <small>small tags</small>.


H. G. Muller wrote on Thu, Jun 10, 2021 03:54 PM UTC in reply to Fergus Duniho from 02:06 PM:

I looked into the default sizes of H1-H6, and I learned that by default, H4 is the same size as the body text, and H5 and H6 are even smaller. This doesn't make sense to me. Headings should always be larger than the body text.

Someone might want to add paragraphs in a smaller-than-standard font. And these might need headers too.

Four header levels already seems quite generous to me.


🕸Fergus Duniho wrote on Thu, Jun 10, 2021 02:06 PM UTC in reply to Greg Strong from 12:57 AM:

I think the H2 text size is very, very large. I'd like to see that scaled down a bit, but things are looking better.

Is that because you are used to it being smaller, or because there are specific pages on which the H2 heading is too long?

I looked into the default sizes of H1-H6, and I learned that by default, H4 is the same size as the body text, and H5 and H6 are even smaller. This doesn't make sense to me. Headings should always be larger than the body text. Additionally, higher level headings should be larger than lower level headings, and size differences between headings of the same style should be large enough to tell them apart. Bearing these considerations in mind results in the headings all being larger than they are by default. This doesn't leave a lot of room for adjusting the size of H2, which is already closer to the size of H3 than to the size of H1.

Additionally, text is appearing larger on Chrome than on Firefox. I normally develop on Firefox, but if you're using Chrome, you will see larger fonts than I normally do. When I inspect the page h1-h6-test.html, which has no CSS or styling, it gives me the same values for the font sizes even though it appears larger on Chrome. In inspecting, Xiangqi, I get the same values for the style elements, though I cannot get Firefox to give me the size in pixels. I need to look into why text is larger on Chrome and see if there is some way to standardize the size in different browsers on the same computer. You may inspect these pages yourself with Developer Tools on Chrome or Web Developer Tools on Firefox.

There are pages on which I plan to use a different style or a lower heading level. These would include link pages, Zillions pages, and Game Courier preset pages, which normally have fewer sections and less text than other pages. I'll work on that later.


x x wrote on Thu, Jun 10, 2021 10:39 AM UTC in reply to Greg Strong from 12:57 AM:

You can press ctrl+f5 to clear cache for current page only


Greg Strong wrote on Thu, Jun 10, 2021 12:57 AM UTC in reply to Fergus Duniho from Wed Jun 9 02:10 AM:

You might want to read the later comments before replying to earlier comments that are no longer pertinent. If you still see the double underlines, you need to clear your cache.

You are correct - my appologies.  I'm travelling and on my father's computer, so I didn't want to clear cache, but I've opened a different browser so I can see how it looks now.  This is a definite improvement.  I think the H2 text size is very, very large.  I'd like to see that scaled down a bit, but things are looking better.  


🕸Fergus Duniho wrote on Wed, Jun 9, 2021 03:08 PM UTC in reply to H. G. Muller from 06:56 AM:

The h5 style makes the impression of being 'incomplete', because it doesn't have left and right vertical borders.

It also doesn't have horizontal borders. If you are seeing it with any borders, you need to clear your cache.

The typeface of h1-h4 'blends in' very well with the typeface of the main text, but h5 and h6 somehow don't.

Also, those no longer use small-caps. Clear your cache to see how it currently looks.


H. G. Muller wrote on Wed, Jun 9, 2021 06:56 AM UTC in reply to Fergus Duniho from Tue Jun 8 09:33 PM:

After looking at some pages, I decided that the pseudo horizontal rule works better for H2. It more clearly sends the message that this is a major section. Since Wikipedia does it, it should be familiar to people, and I don't think it would be considered an unprofessional look.

OK, this is better. Not necessarily better than last week's styles, but at least not far worse. The typeface no longer sticks out as typewriter-like, which I think is a huge improvement. (It is true it was only used in headers, but visually the headers dominate the impression the page makes, because they have such large font sizes.)

Presented in the comment the full-width underlining struck me as a bit weird, but I must admit that in the typical article with an Introduction / Setup / Pieces / Rules / Notes section it works.

Having headers in italics still strikes me as odd, though. But having 6 header levels seems overly generous; I was nottt even aware that HTML supported h5 and h6, and I cannot imagine I would ever need more than 3. So I suppose there isn't any real downside to having some of the lower-level headers in an uncommon style; most people won't need them, and the few that do need more than 3 levels but less than 6 can skip the styles they don't like.

The h5 style makes the impression of being 'incomplete', because it doesn't have left and right vertical borders. Even then, it is still a very exotic header style. The typeface of h1-h4 'blends in' very well with the typeface of the main text, but h5 and h6 somehow don't.

There still is a lare size gap between h4 and the main text. I would expect there to exist headers that had nearly the same size as the main text, but distinguish themselves by being boldface.

The font that is now on HTML buttons still seems fixed space. I don' think that is a good idea; it makes the buttons unnecessarily wide.

 


🕸Fergus Duniho wrote on Wed, Jun 9, 2021 02:10 AM UTC in reply to Greg Strong from 01:58 AM:

You might want to read the later comments before replying to earlier comments that are no longer pertinent. If you still see the double underlines, you need to clear your cache.


Greg Strong wrote on Wed, Jun 9, 2021 01:58 AM UTC in reply to Fergus Duniho from Tue Jun 8 10:42 PM:

It's important to distinguish each heading level by a different visual style.

 

This is a hobbyist site, weird is a personal opinion, and there are only so many different ways of distinguishing six levels of headings by style.

 

Wavy underlines, which I already tried out, look much worse.

Fergus, I'm pretty surprised at what I'm reading.  You have suddenly decided, unilaterally, that six levels MUST be displayed so differently that it slaps you in the face.  And, if the double underline looks terrible, hey, at least they are not wavy?  Is that really your answer?

I think you would agree that I have complained about very, very little all these years, despite several large issues worthy of complaint.  I'd rather not go into enumeration, but I will if you doubt it.

The fact is 99% of the content on this site was not created by you.  You cannot just do whatever you want with it.  The huge, bold, double-underline type is categorically unacceptable to me.


🕸Fergus Duniho wrote on Tue, Jun 8, 2021 10:42 PM UTC:

I switched back to using Noto Sans for headings on the main site, though I will use Courier Prime for headings in Game Courier for thematic reasons. I could not find any good substitute for Noto Sans among sans serif fonts. I wanted one that put bars on the capital I, and there were few of those. I tried out IBM Plex Sans, but it didn't look as good. I figured out how to keep letters in Noto Sans from touching the horizontal rule by using some bottom padding. Since I'm no longer using small-caps or underlining and overlining, H5 and H6 no longer look as bad as they used to when I was trying out Noto Sans. With these problems taken care of, I figured it was okay to go back to Noto Sans.


🕸Fergus Duniho wrote on Tue, Jun 8, 2021 09:33 PM UTC:

After looking at some pages, I decided that the pseudo horizontal rule works better for H2. It more clearly sends the message that this is a major section. Since Wikipedia does it, it should be familiar to people, and I don't think it would be considered an unprofessional look.

Heading One: Centered

Heading Two: Pseudo Horizontal Rule

Heading Three: Normal

Heading Four: Italics

Heading Five: Normal
Heading Six: Italics

🕸Fergus Duniho wrote on Tue, Jun 8, 2021 09:18 PM UTC:

I am trying out a set of headings styles that don't use any horizontal lines. Instead of making all the styles completely different, I am using sharp differences in size between headings using the same style. H5 has the same style as H3, and H6 the same as H4, but each is 0.55em smaller.

Heading One: Centered

Heading Two: Uppercase

This is done with text-transform: uppercase;

Heading Three: Normal

Heading Four: Italics

Heading Five: Normal
Heading Six: Italics

🕸Fergus Duniho wrote on Tue, Jun 8, 2021 08:29 PM UTC in reply to Ben Reiniger from 07:15 PM:

I think I'm fine with the (pseudo)underline for h2, but the under/overlining of h5 makes it stand out more than h3-4.

It works for me, and the only page I know of with H5 and H6 headings is the Game Courier Developer's Guide, which I wrote anyway. If I'm to do away with the lines, I need an alternative that works as well, and I don't have one. I did try small-caps for H5 and small-caps plus italics for H6, but italicized small-caps differs from small-caps merely by being slanted. So, I chose not to do it that way.

Since you pointed out wikipedia's, note that h4-h6 are all the same, and h3 only differs from those in font-size.

Yes, I'm not a fan of how Wikipedia is styled. I borrowed one idea from Wikipedia, because it seems to work, but I don't like how some of their headings differ only by size. It makes it harder to tell what level something is.


Ben Reiniger wrote on Tue, Jun 8, 2021 07:15 PM UTC:

I think I'm fine with the (pseudo)underline for h2, but the under/overlining of h5 makes it stand out more than h3-4.

By the time someone gets to h6, I don't think much distinction really needs to be made; boldface but otherwise p-style would be nearly enough. (Since you pointed out wikipedia's, note that h4-h6 are all the same, and h3 only differs from those in font-size.)


🕸Fergus Duniho wrote on Tue, Jun 8, 2021 07:06 PM UTC:

I temporarily tried Lexend for headings. It looked better than Noto Sans, because it had a geometric design like Futura rather than a grotesque design like Helvetica. However, it did not have an italic style, and using weight to distinguish the heading styles didn't distinguish them enough.


🕸Fergus Duniho wrote on Tue, Jun 8, 2021 06:25 PM UTC in reply to H. G. Muller from 10:16 AM:

The typeface makes the articles look like typewritten manuscripts rather than published articles,

Courier is being used only for headings, not for the body text. I find that it looks better than Noto Sans, and it works better with horizontal lines. When I tried Noto Sans, its descenders touched the horizontal line beneath the H2 heading, and the lines in the H5 heading were not the same distance from the text. I also dislike how barren and uninteresting sans serif fonts look when used for headings. I find that using a non-proportional font for the headings makes them stand out a little bit better and distinguishes them from the body text more.

and having underlining in the headers looks weird and unproffessional.

This is a hobbyist site, weird is a personal opinion, and there are only so many different ways of distinguishing six levels of headings by style.


🕸Fergus Duniho wrote on Tue, Jun 8, 2021 05:19 PM UTC:

Since pages were looking too cluttered with horizontal rules at the top, I took some steps to reduce this clutter. First, I removed the H2 heading for the introduction section in member-submitted pages. Second, I changed the notice that sometimes appears at the top of a page to a paragraph with the notice class instead of text with a horizontal rule above and below it.

To prevent the H1-H6 styles from being used in the wrong place, I limited these styles to headings with an article, or a section within an article, as the immediate parent. In other contexts, such as comments, footers, nav bars, or tables, these styles will not be used. They may be used in comments by enclosing them in an appropriate parent element, like so:

Heading One: Centered

Heading Two: Facsimile of Horizontal Rule

This is done with a border bottom, not a real horizontal rule. Unlike underlining, the line is not broken up by descenders in letters.

Heading Three: Normal

Heading Four: Italics

Heading Five: Small-Caps with Overline and Underline

Because small-caps are more compact, they are used for lower headings rather than for higher ones. The use of horizontal lines parallels the use of a horizontal line in the second heading. Because small-caps all have the same height, words have a more straight appearance, which works better with the overline. Because they have no descenders, the lower line does not get broken up.

Heading Six: Small-Caps

Like the change from heading two to heading three, heading six omits the lines used in the heading just above it.


🕸Fergus Duniho wrote on Tue, Jun 8, 2021 02:34 PM UTC in reply to Greg Strong from 11:22 AM:

these huge, bold, double-underlined headings look absolutely horrible.

Wavy underlines, which I already tried out, look much worse.

Please change it back.

It's important to distinguish each heading level by a different visual style. I am now trying out a style used on Wikipedia for H2. It puts a full-width line underneath the heading. I have done this with the bottom border. So, the line no longer gets broken up by characters with descenders.


Greg Strong wrote on Tue, Jun 8, 2021 11:22 AM UTC in reply to H. G. Muller from 10:16 AM:

I have to say, I think these huge, bold, double-underlined headings look absolutely horrible. Please change it back. Or, at a minimum, get rid of the underlines.


H. G. Muller wrote on Tue, Jun 8, 2021 10:16 AM UTC:

As far as I am concerned this header business is a large step in the direction of uglifying the website. The typeface makes the articles look like typewritten manuscripts rather than published articles, and having underlining in the headers looks weird and unproffessional. On a scale of 1-10 I would judge the old header styles perhaps as 8, and the new situation as a 3. And this new (fixed-spaced) typeface now also appears on HTML buttons...


🕸Fergus Duniho wrote on Sun, Jun 6, 2021 08:40 PM UTC:

I adjusted the margins of the headings to be the same, and I put more space above a heading than below it so that each heading is closer to the text it is a heading for. But I also avoided making it look crowded by putting a heading too close to the text following it.


🕸Fergus Duniho wrote on Sat, Jun 5, 2021 06:17 PM UTC:

Here is why I am using small-caps for headings five and six instead of for heading two, as I used to do in Game Courier:

Using small-caps reduces the width of the line in Courier Prime even though it is not proportional.

Using small-caps reduces the width of the line in Courier Prime even though it is not proportional.


🕸Fergus Duniho wrote on Sat, Jun 5, 2021 05:24 PM UTC:

I've been working on redesigning the headings so that one can intuitively tell one level from another. Besides decreasing in size, they also differ in style.

Heading One: Centered

Heading Two: Double Underlined

I had originally just used underlining, but I changed it to double underlining to avoid confusion with links, which are normally underlined with a single line.

Heading Three: Normal

Heading Four: Italics

Heading Five: Small-Caps with Overline and Underline

Because small-caps are more compact, they are used for lower headings rather than for higher ones. The use of lines parallels the use of lines in the second heading. Because small-caps all have the same height, words have a more straight appearance, which works better with the overline.

Heading Six: Small-Caps

Like the change from heading two to heading three, heading six omits the lines used in the heading just above it.


🕸Fergus Duniho wrote on Fri, Jun 4, 2021 11:41 PM UTC:

I learned last night about a new type of font file called a Variable font. This includes all the styles for a typeface within a single file. Previously, each style of a typeface would get its own font file. Since the typeface used for the main body of this site was now available as a Variable font, I updated it. But while I was at Google Fonts today, I decided to check out other fonts.

I ended up replacing Lora with Literata. This typeface was designed for use with Google Play Books, and its basically the Google counterpart to Amazon's Bookerly. I liked it better than Lora for a few reasons.

  1. It looks cleaner at small sizes. At the size of text used on the website, some characters in Lora have a bit of a blur to them, because they are being anti-aliased to look good at a smaller size than they were actually designed for. At the same size, characters in Literata lack this blur.
  2. Its lowercase letters have a lower X-height, which creates more contrast between upper and lowercase letters.
  3. Although its Q does reach underneath the next letter, it's only by a little bit, and I otherwise prefer the look of its Q, whose curved tail is similar to the one used in Century Schoolbook.

I also replaced FreeMono with Courier Prime, because with Game Courier on the site, I wanted a Courier monospace font. I have begun using it instead of the sans serif font for headings.

While I did try some other sans serif fonts, I stuck with Noto Sans. Presently, Literata is the only Variable font on the site. The others use individual font files for each style.


The birth of 3 new variants - part 1 : Grand Apothecary Chess Alert[Subject Thread] [Add Response]
Aurelian Florea wrote on Fri, Jun 4, 2021 01:33 PM UTC:

@Fergus, A third thing if I may ask in these game the king may castle in 2 ways with the rook that starts near the corner of the board or with the corner cannon. Omega chess implements a castle move with a non corner piece. Can I combine this with the regular castling subroutine in order to easily make my castle subroutine work?


Aurelian Florea wrote on Thu, Jun 3, 2021 11:32 AM UTC:

@Fergus, I think the berolina pawns have the same problem that the regular pawns had!


Aurelian Florea wrote on Thu, Jun 3, 2021 04:29 AM UTC:

Fergus, What about the ability of changing the blue color of the highlighting when showing possible moves.


🕸Fergus Duniho wrote on Wed, Jun 2, 2021 09:10 PM UTC in reply to Aurelian Florea from 07:33 AM:

You were correct in identifying the problem. The range functions for the Pawns did not take into account the value of fps. However, replacing 2 with fps would not allow for first Pawn moves that are shorter than the maximum possible distance. For example, if fps were set to 3, this would include 3-space moves, but it would not include 2-space moves. This is what I ended up with:

def White_Pawn-Range mergeall where #ori -1 1 where #ori 1 1 filter lambda (onboard #1) aggregate lambda (where #ori 0 #0) range 1 var fps =ori;
def Black_Pawn-Range mergeall where #ori -1 -1 where #ori 1 -1 filter lambda (onboard #1) aggregate lambda (where #ori 0 neg #0) range 1 var fps =ori;

These use aggregate to create an array of spaces a Pawn may advance forward to, and they use filter to weed out non-spaces that are out-of-range. They use a named parameter in order to use its value in the lambda function used by aggregate.

I have since modified the functions above to use the filter on all results:

def White_Pawn-Range filter lambda (onboard #1) mergeall where #ori -1 1 where #ori 1 1 aggregate lambda (where #ori 0 #0) range 1 var fps =ori;
def Black_Pawn-Range filter lambda (onboard #1) mergeall where #ori -1 -1 where #ori 1 -1 aggregate lambda (where #ori 0 neg #0) range 1 var fps =ori;

Finally, I replaced aggregate with an expanded version of the values operator. With a lambda function and an array, it will work just like filter except that it returns a sequential array of each value calculated by the lambda function. Unlike aggregate, it will include values of zero, because it does no filtering on the results it calculates. As it did before, it will return the values of an array if that is what's passed to it. If it does not get a lambda function or an array, it will return the rest of the arguments following it as a single array.

def White_Pawn-Range filter lambda (onboard #1) mergeall where #ori -1 1 where #ori 1 1 every lambda (where #ori 0 #1) range 1 var fps =ori;
def Black_Pawn-Range filter lambda (onboard #1) mergeall where #ori -1 -1 where #ori 1 -1 every lambda (where #ori 0 neg #1) range 1 var fps =ori;

Aurelian Florea wrote on Wed, Jun 2, 2021 07:33 AM UTC:

Fergus, Is it not that in the fairy chess include file the functions :

def White_Pawn-Range array where #0 0 2 where #0 0 1 where #0 -1 1 where #0 1 1; def Black_Pawn-Range array where #0 0 -2 where #0 0 -1 where #0 -1 -1 where #0 1 -1;

for generality they should be:

def White_Pawn-Range array where #0 0 var fps where #0 0 1 where #0 -1 1 where #0 1 1; def Black_Pawn-Range array where #0 0 - var fps where #0 0 -1 where #0 -1 -1 where #0 1 -1;

?


Aurelian Florea wrote on Wed, Jun 2, 2021 07:17 AM UTC:

Fergus, is there a way to customize the blue color that highlights possible moves?


100 comments displayed

LatestLater Reverse Order EarlierEarliest

Permalink to the exact comments currently displayed.