Check out Janggi (Korean Chess), our featured variant for December, 2024.


[ Help | Earliest Comments | Latest Comments ]
[ List All Subjects of Discussion | Create New Subject of Discussion ]
[ List Earliest Comments Only For Pages | Games | Rated Pages | Rated Games | Subjects of Discussion ]

Comments/Ratings for a Single Item

Earlier Reverse Order Later
Coherent Chess (updated). http://www.chessvariants.org/large.dir/coherent.html.[All Comments] [Add Comment or Rating]
💡📝Carlos Cetina wrote on Sat, Jun 2, 2012 09:16 PM UTC:
Fergus,

I need your help. I'm trying to enforce the rules for this preset but the system says me "Syntax Error on line 0" and "Call to checks subroutine got misrouted", which I don't understand.

The preset is here. By clicking on the "MOVE pieces by your self" button you will can see displayed the full game code program.

On 35 and 75 lines I added the sissa names for uppercase and lowercase respectively. Hope to have done it correctly.

Thanks beforhand for your attention.


🕸Fergus Duniho wrote on Sun, Jun 3, 2012 10:42 PM UTC:
The functions and subroutines you're calling do not match up with the ones defined in the include file you are including. Note that chess and chess2 are not compatible with each other. These two include files do things very differently. You have included chess2, but the rest of your code seems designed for chess. The chess include file is optimized for Chess, and the chess2 include file uses a more generalized approach that is easier to adapt to other variants. The chess include file cannot be used for hopping pieces, but you should be able to adapt it for use with leapers and riders. If you use this include file, you will need to write separate functions for moving a piece and for spotting checks from the piece. You have not done the latter. Whichever you use, you have some more programming to do before you get your preset to work right. Examine it closely, and examine the preset that uses it to learn what kind of code needs to be used with it.

💡📝Carlos Cetina wrote on Mon, Jun 4, 2012 02:21 AM UTC:
OK. Thanks. I will follow your instructions and later will comment you the results.

By the way, some days ago I was analizing theTrascendental Chess preset and found it has a bug. I think it is due to an error in the code box that it has written there this setup:8pppppppp32PPPPPPPP8.


🕸Fergus Duniho wrote on Mon, Jun 4, 2012 04:01 AM UTC:
Thanks, I fixed the bug in Transcendental Chess. It was due to the omission of a keyword in the findpiece function, which resulted in returning null strings for the locations of the Kings.

4 comments displayed

Earlier Reverse Order Later

Permalink to the exact comments currently displayed.