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 ]

Single Comment

Game Courier Developer's Guide. Learn how to design and program Chess variants for Game Courier.[All Comments] [Add Comment or Rating]
🕸📝Fergus Duniho wrote on Sun, Dec 5, 2004 04:10 AM UTC:
In preparation for a British Chess preset, I have added some new features
to Game Courier that are now documented here. These are the path function
and the foreach-next loop. The path function returns an array of all steps
from one space to another. The foreach-next loop iterates through all the
elements of an array. Although I could do it, I don't plan to add
additional types of looping, since I don't want to provide the ability to
create infinite loops. Foreach should be sufficient for any looping needs
any preset has.

Also, I am deprecating how endif currently works. In the future, endif
will automatically close off all elseifs within the scope of the current
if, which it will also close. There will no longer be any need to use
numbers or the all keyword with endif. I could make the switch right away
if everyone wrote endifs the same way I do, but just in case anyone has
used endif arguments for shortcuts that close off multiple ifs, not just
multiple elseifs and a single if, I am allowing time for transition before
the old way of using endif breaks down. To make the transition, replace any
use of 'endif all' or 'endif #' with 'endifs' and make sure that each
'endifs' statement closes off only one 'if' statement. The 'endifs'
command works in the same way that 'endif' eventually will.