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 Fergus Duniho

Later Reverse Order EarlierEarliest
This item is a game information page
It belongs to categories: Orthodox chess, 
It was last modified on: 0000-00-00
 By Fergus  Duniho. fpdtest. Testing.[All Comments] [Add Comment or Rating]
Fergus Duniho wrote on 2020-07-04 UTC

I'm now testing the ability to post comments to pages with the editcomment.php script.

I'm now testing the ability to edit a comment posted to a page.


The new editcomment.php script[All Comments] [Add Comment or Rating]
Fergus Duniho wrote on 2020-07-03 UTC

I am running a test of a new script for editing comments. It is a single script that will handle comments on pages and subjects. It is intended to replace createcomment.php, previewcomment.php, addcomment.php, createsubject.php, previewsubject.php, addsubject.php, usereditcomment.php, userpreviewcomment.php, and usermodifycomment.php.

I have written a new function for database-funcs.php called insert_row(). This script uses it to insert new comments.

As a test, I am updating it with this third paragraph.


UPDATED! 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. (Updated!) An attempt at a logical expansion of Chess to a 10x10 board.[All Comments] [Add Comment or Rating]
Fergus Duniho wrote on 2020-07-03 UTC

You can screen those out with a line that rejects ferz moves. Here is a revision:

def Osprey fn (checkride #0 #1 1 1 and empty #0) 
  where #0 0 * 2 sign - rank #1 rank #0 
  #1 
  or fn (checkride #0 #1 1 1 and empty #0) 
  where #0 * 2 sign - file #1 file #0 0 
  #1
and not checkleap #0 #1 1 1
or checkleap #0 #1 2 0; 

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]
Fergus Duniho wrote on 2020-07-03 UTC

Since it works for displaying legal moves, it's probably because the Pawn functions are only for potential moves, and the Joker is trying to use one of the Pawn functions when making an actual move. Specifically, I think it fails on the line "and empty #1" in the Pawn function, because that space is occupied for an actual move. Some options include changing your rules, rewriting the Pawn functions to handle both potential and actual moves, or using a Joker subroutine for actual moves, which would let you undo the Joker's move before testing it with a function, then redoing it if it is legal.


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]
Fergus Duniho wrote on 2020-07-03 UTC

I was looking at data on Cloudflare, which is not available through here.


UPDATED! 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. (Updated!) An attempt at a logical expansion of Chess to a 10x10 board.[All Comments] [Add Comment or Rating]
Fergus Duniho wrote on 2020-07-03 UTC

That looks correct.


UPDATED! This item is a game information page
It belongs to categories: Orthodox chess, 
It was last modified on: 2020-07-02
 By Greg  Strong. Brouhaha. (Updated!) Like Chess, but it really brings the ruckus! (8x8, Cells: 72) [All Comments] [Add Comment or Rating]
Fergus Duniho wrote on 2020-07-02 UTC

You don't have to imagine bent sliders. If a Rook captured a Scout on its starting space, I presume it would not be able to capture a Cleric still on its starting space. Since Chesire Cat Chess removes spaces from the regular playing area and still includes sliders, it makes sense that it would allow moving over non-existing spaces. But I think that the rule in Chesire Cat Chess is going to be the exception, not the default behavior. Game Courier, for example, would not allow movement across non-existing spaces, and for a game like Chesire Cat Chess, an exception would have to be programmed in. In this game, there are non-existing spaces only between spaces whose only purpose is to provide a launching area for extra pieces to enter the main playing area.


UPDATED! 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. (Updated!) An attempt at a logical expansion of Chess to a 10x10 board.[All Comments] [Add Comment or Rating]
Fergus Duniho wrote on 2020-07-02 UTC

The range function looks correct. Where the Aanca function calculates 1 or -1, you want yours to calculate 2 or -2. The simplest way is to multiply the return value of sign by 2.


Fergus Duniho wrote on 2020-07-02 UTC

The underlined parts are arguments to where, which takes three arguments. The first argument, which you haven't underlined, is the starting coordinate. The next one is a number of files, and the last one is a number of ranks. These values may be negative or positive, and this determines direction. Using these values, where returns the coordinate that is so many files and ranks away in the given directions. This is being used to calculate the coordinate of the turning square, which is one of the arguments for each of the Lambda functions. This uses sign, which returns -1, 0, or 1, depending on whether a value is negative, zero, or positive. When 0 comes first, it will typically be calculating where #0 0 1 or where #0 0 -1. Where 0 is last, it will typically be calculating where #0 1 0 or where #0 -1 0. When the destination is on the same file or rank, and it is not a Wazir move away, it may sometimes return where #0 0 0, which will be the starting space. Since there is no Bishop move to a space on the same rank or file, the function will return false for such a destination, which is correct. For potential moves, it will return false even earlier, since that space will still be occupied.


UPDATED! This item is a game information page
It belongs to categories: Orthodox chess, 
It was last modified on: 2020-07-02
 By Greg  Strong. Brouhaha. (Updated!) Like Chess, but it really brings the ruckus! (8x8, Cells: 72) [All Comments] [Add Comment or Rating]
Fergus Duniho wrote on 2020-07-02 UTC

They could just be called disappearing squares or vanishing squares or something along the same lines. They're nothing new. In Chesire Cat Chess and Wormhole Chess, all the squares of the board are like that. What's novel about this game is using them for only some of the squares. This use of them could be termed launch squares.


UPDATED! 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. (Updated!) An attempt at a logical expansion of Chess to a 10x10 board.[All Comments] [Add Comment or Rating]
Fergus Duniho wrote on 2020-07-01 UTC

Since it's most similar to the Aanca, let's first look at how the code for that piece works:

def Aanca fn (checkride #0 #1 1 1 and empty #0) 
where #0 0 sign - rank #1 rank #0 
#1 
or fn (checkride #0 #1 1 1 and empty #0) 
where #0 sign - file #1 file #0 0 
#1
or checkleap #0 #1 1 0;

The code works backward, as usual. So it first checks whether the move is a one-space orthogonal move. If it is, it returns true immediately. If not, it continues. To calculate whether it makes a legal Aanca move, it needs three coordinates. #0 is the origin, and #1 is the destination, but it also needs the coordinate for the space on which it changes direction. Unfortunately, variables cannot be assigned in functions. The next best thing is to use a Lambda function that can take arguments. These appear in parentheses after the fn operator. Each one is the same, but each one gets fed different arguments. The second argument is always #1, which is the destination space. The first argument is the space where the move changes direction. Since each destination space falls into one of four quadrants, and there are two possible paths to the destination through a particular quadrant, this information is used to reduce the paths that need to be checked to two.

It first checks whether the move is going left or right, and based on that, it selects the space to the left or right of the origin space as the turning space. It then makes sure it is empty and that there is a legal Bishop move from it to the destination space. If that fails, it checks whether the move is going forward or backward, and based on that, it selects the space ahead or behind the origin space as the turning space. It makes sure this space is empty, and if it is, it makes sure there is a legal Bishop move from that space to the destination. If there is, it returns true, and if there is not, it returns false. I expect that the piece you want can be done with only slight modifications to this function.


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]
Fergus Duniho wrote on 2020-07-01 UTC

I didn't say to get rid of the else clause. I said to get rid of the else. Just the else. A single line of code.


Fergus Duniho wrote on 2020-06-30 UTC

Also, add "return false;" to the very end of the subroutine.


Fergus Duniho wrote on 2020-06-30 UTC

The function looks fine. In the subroutine, you should remove the else.


Fergus Duniho wrote on 2020-06-30 UTC

$origin should not be included in the function definition. It may be used as an argument when calling a function or subroutine, but it should not be included in the definition of one. You should check the flag before calling the checked subroutine, because that will minimize the use of the subroutine. The same goes for checking the rank of the destination. Always do less expensive operations before more expensive operations, because that will minimize the need to do the most expensive operations.


Fergus Duniho wrote on 2020-06-29 UTC

The subroutine should undo the King's move before checking whether it is in check. If the move is legal, then it should redo it. The function does not need to undo and redo the King's move, but it should make sure the King is not in check before allowing the special moves. Also, each should handle the regular moves before checking whether the King is in check. Your current subroutine is very wasteful, because it will check whether the King is in check every single time.


Fergus Duniho wrote on 2020-06-29 UTC

This should be handled in the Apothecary_King function and in the Apothecary_King subroutine, not externally. Furthermore, the subroutine should not call the function. Each one should handle this independently from the other.


This item is a game information page
It belongs to categories: Orthodox chess, 
It was last modified on: 2020-04-30
 By Simon Edward Jepps. Phantom. Classical Chess featuring an invisible Phantom piece.[All Comments] [Add Comment or Rating]
Fergus Duniho wrote on 2020-06-28 UTC

I noticed today that this directory didn't have group write permissions set. I set it, changed the owner and group from apache to chessvariants, and it allowed me to upload and delete a file, because chessvariants and apache are in each other's group. You should be able to upload files now. Let me know if you still have any trouble.


Fergus Duniho wrote on 2020-06-28 UTC

This happened because Owner and Group were set to root. I changed them to chessvariants, but that still didn't fix the problem. So, I then changed them to apache, and that fixed it. I then used the File Manager to upload and delete a file to the directory for this page.


UPDATED! This item is a reference work
It belongs to categories: Orthodox chess, 
It was last modified on: 2020-06-26
 Author: Fergus  Duniho. The Fairychess Include File Tutorial. (Updated!) How to use the fairychess include file to program games for Game Courier.[All Comments] [Add Comment or Rating]
Fergus Duniho wrote on 2020-06-26 UTC

I just moved up and rewrote the Actual vs Potential Moves section. I also revised the section called "A Real Example from Chess", which now follows it.


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]
Fergus Duniho wrote on 2020-06-26 UTC

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


Fergus Duniho wrote on 2020-06-26 UTC

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

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


This item is a piececlopedia entry
It belongs to categories: Orthodox chess, 
It was last modified on: 2004-08-23
 Author: Fergus  Duniho and Hans L. Bodlaender. Knight. See Knight. Makes a (1,2)-jump.[All Comments] [Add Comment or Rating]
Fergus Duniho wrote on 2020-06-25 UTC

Tonight on Jeoprady, there was a question about what one-letter abbreviation, which is not K, is used for a Knight in Chess. I was surprised that no one at all got the correct answer. Someone who didn't choose the question jumped in with the answer L, which was wrong. Even if none of them knew Chess, simple phonics should have led someone to conclude that the answer is N.


This item is an organization, society, group or company
It belongs to categories: Orthodox chess, 
It was last modified on: 2001-04-25
 Author: Rob  Stevens. Inventor: Dave  Reynolds. The Circular Chess Society. Organization for players of Circular Chess.[All Comments] [Add Comment or Rating]
Fergus Duniho wrote on 2020-06-25 UTC

The link to the website doesn't work, and we have another link page for this same organization. But this page is more informative. I'll leave it up for now in case anyone knows anything about this organization's current status.


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]
Fergus Duniho wrote on 2020-06-25 UTC

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


25 comments displayed

Later Reverse Order EarlierEarliest

Permalink to the exact comments currently displayed.