Check out Modern Chess, our featured variant for January, 2025.


[ 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 Thu, Dec 16, 2004 04:56 AM UTC:
<P>Here's what the most recent changes to Game Courier are about. Previously, the entire GAME Code program would be interpreted in one big <B>for</B> loop. I put this into a function so that GAME Code's subroutines could be handled through recursive function calls. This made it easier for me to have subroutines return values. So easy, in fact, that the Polish Notation calculator now includes the sub operator, which calls the named subroutine with a list of arguments, runs it, and returns its value. In this way, multiple subroutine calls can be included in a single Polish Notation expression.</P> <P>Also, Game Courier used to read through every line of a GAME Code program, skipping certain lines depending upon the value of conditions in if-statements and loops. It now uses direct jumps to bypass code it won't be executing. This doesn't really affect what you can do with the language, but it makes it more efficient.</P>